//===----------------------------------------------------------------------===//
//
// This source file is part of the Soto for AWS open source project
//
// Copyright (c) 2017-2024 the Soto project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Soto project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

// THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator.
// DO NOT EDIT.

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
@_spi(SotoInternal) import SotoCore

extension SES {
    // MARK: Enums

    public enum BehaviorOnMXFailure: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case rejectMessage = "RejectMessage"
        case useDefaultValue = "UseDefaultValue"
        public var description: String { return self.rawValue }
    }

    public enum BounceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case contentRejected = "ContentRejected"
        case doesNotExist = "DoesNotExist"
        case exceededQuota = "ExceededQuota"
        case messageTooLarge = "MessageTooLarge"
        case temporaryFailure = "TemporaryFailure"
        case undefined = "Undefined"
        public var description: String { return self.rawValue }
    }

    public enum BulkEmailStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case accountDailyQuotaExceeded = "AccountDailyQuotaExceeded"
        case accountSendingPaused = "AccountSendingPaused"
        case accountSuspended = "AccountSuspended"
        case accountThrottled = "AccountThrottled"
        case configurationSetDoesNotExist = "ConfigurationSetDoesNotExist"
        case configurationSetSendingPaused = "ConfigurationSetSendingPaused"
        case failed = "Failed"
        case invalidParameterValue = "InvalidParameterValue"
        case invalidSendingPoolName = "InvalidSendingPoolName"
        case mailFromDomainNotVerified = "MailFromDomainNotVerified"
        case messageRejected = "MessageRejected"
        case success = "Success"
        case templateDoesNotExist = "TemplateDoesNotExist"
        case transientFailure = "TransientFailure"
        public var description: String { return self.rawValue }
    }

    public enum ConfigurationSetAttribute: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case deliveryOptions = "deliveryOptions"
        case eventDestinations = "eventDestinations"
        case reputationOptions = "reputationOptions"
        case trackingOptions = "trackingOptions"
        public var description: String { return self.rawValue }
    }

    public enum CustomMailFromStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case failed = "Failed"
        case pending = "Pending"
        case success = "Success"
        case temporaryFailure = "TemporaryFailure"
        public var description: String { return self.rawValue }
    }

    public enum DimensionValueSource: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case emailHeader = "emailHeader"
        case linkTag = "linkTag"
        case messageTag = "messageTag"
        public var description: String { return self.rawValue }
    }

    public enum DsnAction: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case delayed = "delayed"
        case delivered = "delivered"
        case expanded = "expanded"
        case failed = "failed"
        case relayed = "relayed"
        public var description: String { return self.rawValue }
    }

    public enum EventType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case bounce = "bounce"
        case click = "click"
        case complaint = "complaint"
        case delivery = "delivery"
        case open = "open"
        case reject = "reject"
        case renderingFailure = "renderingFailure"
        case send = "send"
        public var description: String { return self.rawValue }
    }

    public enum IdentityType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case domain = "Domain"
        case emailAddress = "EmailAddress"
        public var description: String { return self.rawValue }
    }

    public enum InvocationType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case event = "Event"
        case requestResponse = "RequestResponse"
        public var description: String { return self.rawValue }
    }

    public enum NotificationType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case bounce = "Bounce"
        case complaint = "Complaint"
        case delivery = "Delivery"
        public var description: String { return self.rawValue }
    }

    public enum ReceiptFilterPolicy: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case allow = "Allow"
        case block = "Block"
        public var description: String { return self.rawValue }
    }

    public enum SNSActionEncoding: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case base64 = "Base64"
        case utf8 = "UTF-8"
        public var description: String { return self.rawValue }
    }

    public enum StopScope: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case ruleSet = "RuleSet"
        public var description: String { return self.rawValue }
    }

    public enum TlsPolicy: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case optional = "Optional"
        case require = "Require"
        public var description: String { return self.rawValue }
    }

    public enum VerificationStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case failed = "Failed"
        case notStarted = "NotStarted"
        case pending = "Pending"
        case success = "Success"
        case temporaryFailure = "TemporaryFailure"
        public var description: String { return self.rawValue }
    }

    // MARK: Shapes

    public struct AddHeaderAction: AWSEncodableShape & AWSDecodableShape {
        /// The name of the header to add to the incoming message. The name must contain at least one character, and can contain up to 50 characters. It consists of alphanumeric (a–z, A–Z, 0–9) characters and dashes.
        public let headerName: String
        /// The content to include in the header. This value can contain up to 2048 characters. It can't contain newline (\n) or carriage return (\r) characters.
        public let headerValue: String

        @inlinable
        public init(headerName: String, headerValue: String) {
            self.headerName = headerName
            self.headerValue = headerValue
        }

        private enum CodingKeys: String, CodingKey {
            case headerName = "HeaderName"
            case headerValue = "HeaderValue"
        }
    }

    public struct AlreadyExistsException: AWSErrorShape {
        public let message: String?
        /// Indicates that a resource could not be created because the resource name already exists.
        public let name: String?

        @inlinable
        public init(message: String? = nil, name: String? = nil) {
            self.message = message
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case message = "message"
            case name = "Name"
        }
    }

    public struct Body: AWSEncodableShape {
        /// The content of the message, in HTML format. Use this for email clients that can process HTML. You can include clickable links, formatted text, and much more in an HTML message.
        public let html: Content?
        /// The content of the message, in text format. Use this for text-based email clients, or clients on high-latency networks (such as mobile devices).
        public let text: Content?

        @inlinable
        public init(html: Content? = nil, text: Content? = nil) {
            self.html = html
            self.text = text
        }

        private enum CodingKeys: String, CodingKey {
            case html = "Html"
            case text = "Text"
        }
    }

    public struct BounceAction: AWSEncodableShape & AWSDecodableShape {
        /// Human-readable text to include in the bounce message.
        public let message: String
        /// The email address of the sender of the bounced email. This is the address from which the bounce message is sent.
        public let sender: String
        /// The SMTP reply code, as defined by RFC 5321.
        public let smtpReplyCode: String
        /// The SMTP enhanced status code, as defined by RFC 3463.
        public let statusCode: String?
        /// The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken. You can find the ARN of a topic by using the ListTopics operation in Amazon SNS. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
        public let topicArn: String?

        @inlinable
        public init(message: String, sender: String, smtpReplyCode: String, statusCode: String? = nil, topicArn: String? = nil) {
            self.message = message
            self.sender = sender
            self.smtpReplyCode = smtpReplyCode
            self.statusCode = statusCode
            self.topicArn = topicArn
        }

        private enum CodingKeys: String, CodingKey {
            case message = "Message"
            case sender = "Sender"
            case smtpReplyCode = "SmtpReplyCode"
            case statusCode = "StatusCode"
            case topicArn = "TopicArn"
        }
    }

    public struct BouncedRecipientInfo: AWSEncodableShape {
        /// The reason for the bounce. You must provide either this parameter or RecipientDsnFields.
        public let bounceType: BounceType?
        /// The email address of the recipient of the bounced email.
        public let recipient: String
        /// This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to receive email for the recipient of the bounced email. For more information about sending authorization, see the Amazon SES Developer Guide.
        public let recipientArn: String?
        /// Recipient-related DSN fields, most of which would normally be filled in automatically when provided with a BounceType. You must provide either this parameter or BounceType.
        public let recipientDsnFields: RecipientDsnFields?

        @inlinable
        public init(bounceType: BounceType? = nil, recipient: String, recipientArn: String? = nil, recipientDsnFields: RecipientDsnFields? = nil) {
            self.bounceType = bounceType
            self.recipient = recipient
            self.recipientArn = recipientArn
            self.recipientDsnFields = recipientDsnFields
        }

        private enum CodingKeys: String, CodingKey {
            case bounceType = "BounceType"
            case recipient = "Recipient"
            case recipientArn = "RecipientArn"
            case recipientDsnFields = "RecipientDsnFields"
        }
    }

    public struct BulkEmailDestination: AWSEncodableShape {
        public let destination: Destination
        /// A list of tags, in the form of name/value pairs, to apply to an email that you send using SendBulkTemplatedEmail. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.
        @OptionalCustomCoding<StandardArrayCoder<MessageTag>>
        public var replacementTags: [MessageTag]?
        /// A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.
        public let replacementTemplateData: String?

        @inlinable
        public init(destination: Destination, replacementTags: [MessageTag]? = nil, replacementTemplateData: String? = nil) {
            self.destination = destination
            self.replacementTags = replacementTags
            self.replacementTemplateData = replacementTemplateData
        }

        public func validate(name: String) throws {
            try self.validate(self.replacementTemplateData, name: "replacementTemplateData", parent: name, max: 262144)
        }

        private enum CodingKeys: String, CodingKey {
            case destination = "Destination"
            case replacementTags = "ReplacementTags"
            case replacementTemplateData = "ReplacementTemplateData"
        }
    }

    public struct BulkEmailDestinationStatus: AWSDecodableShape {
        /// A description of an error that prevented a message being sent using the SendBulkTemplatedEmail operation.
        public let error: String?
        /// The unique message identifier returned from the SendBulkTemplatedEmail operation.
        public let messageId: String?
        /// The status of a message sent using the SendBulkTemplatedEmail operation. Possible values for this parameter include:    Success: Amazon SES accepted the message, and attempts to deliver it to the recipients.    MessageRejected: The message was rejected because it contained a virus.    MailFromDomainNotVerified: The sender's email address or domain was not verified.    ConfigurationSetDoesNotExist: The configuration set you specified does not exist.    TemplateDoesNotExist: The template you specified does not exist.    AccountSuspended: Your account has been shut down because of issues related to your email sending practices.    AccountThrottled: The number of emails you can send has been reduced because your account has exceeded its allocated sending limit.    AccountDailyQuotaExceeded: You have reached or exceeded the maximum number of emails you can send from your account in a 24-hour period.    InvalidSendingPoolName: The configuration set you specified refers to an IP pool that does not exist.    AccountSendingPaused: Email sending for the Amazon SES account was disabled using the UpdateAccountSendingEnabled operation.    ConfigurationSetSendingPaused: Email sending for this configuration set was disabled using the UpdateConfigurationSetSendingEnabled operation.    InvalidParameterValue: One or more of the parameters you specified when calling this operation was invalid. See the error message for additional information.    TransientFailure: Amazon SES was unable to process your request because of a temporary issue.    Failed: Amazon SES was unable to process your request. See the error message for additional information.
        public let status: BulkEmailStatus?

        @inlinable
        public init(error: String? = nil, messageId: String? = nil, status: BulkEmailStatus? = nil) {
            self.error = error
            self.messageId = messageId
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case error = "Error"
            case messageId = "MessageId"
            case status = "Status"
        }
    }

    public struct CannotDeleteException: AWSErrorShape {
        public let message: String?
        /// Indicates that a resource could not be deleted because no resource with the specified name exists.
        public let name: String?

        @inlinable
        public init(message: String? = nil, name: String? = nil) {
            self.message = message
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case message = "message"
            case name = "Name"
        }
    }

    public struct CloneReceiptRuleSetRequest: AWSEncodableShape {
        /// The name of the rule set to clone.
        public let originalRuleSetName: String
        /// The name of the rule set to create. The name must meet the following requirements:   Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Start and end with a letter or number.   Contain 64 characters or fewer.
        public let ruleSetName: String

        @inlinable
        public init(originalRuleSetName: String, ruleSetName: String) {
            self.originalRuleSetName = originalRuleSetName
            self.ruleSetName = ruleSetName
        }

        private enum CodingKeys: String, CodingKey {
            case originalRuleSetName = "OriginalRuleSetName"
            case ruleSetName = "RuleSetName"
        }
    }

    public struct CloneReceiptRuleSetResponse: AWSDecodableShape {
        public init() {}
    }

    public struct CloudWatchDestination: AWSEncodableShape & AWSDecodableShape {
        /// A list of dimensions upon which to categorize your emails when you publish email sending events to Amazon CloudWatch.
        @CustomCoding<StandardArrayCoder<CloudWatchDimensionConfiguration>>
        public var dimensionConfigurations: [CloudWatchDimensionConfiguration]

        @inlinable
        public init(dimensionConfigurations: [CloudWatchDimensionConfiguration]) {
            self.dimensionConfigurations = dimensionConfigurations
        }

        private enum CodingKeys: String, CodingKey {
            case dimensionConfigurations = "DimensionConfigurations"
        }
    }

    public struct CloudWatchDimensionConfiguration: AWSEncodableShape & AWSDecodableShape {
        /// The default value of the dimension that is published to Amazon CloudWatch if you do not provide the value of the dimension when you send an email. The default value must meet the following requirements:   Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), at signs (@), or periods (.).   Contain 256 characters or fewer.
        public let defaultDimensionValue: String
        /// The name of an Amazon CloudWatch dimension associated with an email sending metric. The name must meet the following requirements:   Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or colons (:).   Contain 256 characters or fewer.
        public let dimensionName: String
        /// The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. To use the message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the SendEmail/SendRawEmail API, specify messageTag. To use your own email headers, specify emailHeader. To put a custom tag on any link included in your email, specify linkTag.
        public let dimensionValueSource: DimensionValueSource

        @inlinable
        public init(defaultDimensionValue: String, dimensionName: String, dimensionValueSource: DimensionValueSource) {
            self.defaultDimensionValue = defaultDimensionValue
            self.dimensionName = dimensionName
            self.dimensionValueSource = dimensionValueSource
        }

        private enum CodingKeys: String, CodingKey {
            case defaultDimensionValue = "DefaultDimensionValue"
            case dimensionName = "DimensionName"
            case dimensionValueSource = "DimensionValueSource"
        }
    }

    public struct ConfigurationSet: AWSEncodableShape & AWSDecodableShape {
        /// The name of the configuration set. The name must meet the following requirements:   Contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Contain 64 characters or fewer.
        public let name: String

        @inlinable
        public init(name: String) {
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
        }
    }

    public struct ConfigurationSetAlreadyExistsException: AWSErrorShape {
        /// Indicates that the configuration set does not exist.
        public let configurationSetName: String?
        public let message: String?

        @inlinable
        public init(configurationSetName: String? = nil, message: String? = nil) {
            self.configurationSetName = configurationSetName
            self.message = message
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case message = "message"
        }
    }

    public struct ConfigurationSetDoesNotExistException: AWSErrorShape {
        /// Indicates that the configuration set does not exist.
        public let configurationSetName: String?
        public let message: String?

        @inlinable
        public init(configurationSetName: String? = nil, message: String? = nil) {
            self.configurationSetName = configurationSetName
            self.message = message
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case message = "message"
        }
    }

    public struct ConfigurationSetSendingPausedException: AWSErrorShape {
        /// The name of the configuration set for which email sending is disabled.
        public let configurationSetName: String?
        public let message: String?

        @inlinable
        public init(configurationSetName: String? = nil, message: String? = nil) {
            self.configurationSetName = configurationSetName
            self.message = message
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case message = "message"
        }
    }

    public struct ConnectAction: AWSEncodableShape & AWSDecodableShape {
        ///  The Amazon Resource Name (ARN) of the IAM role to be used by Amazon Simple Email Service while starting email contacts to the Amazon Connect instance. This role should have permission to invoke connect:StartEmailContact for the given Amazon Connect instance.
        public let iamRoleARN: String
        /// The Amazon Resource Name (ARN) for the Amazon Connect instance that Amazon SES integrates with for starting email contacts. For more information about Amazon Connect instances, see the Amazon Connect Administrator Guide
        public let instanceARN: String

        @inlinable
        public init(iamRoleARN: String, instanceARN: String) {
            self.iamRoleARN = iamRoleARN
            self.instanceARN = instanceARN
        }

        public func validate(name: String) throws {
            try self.validate(self.iamRoleARN, name: "iamRoleARN", parent: name, max: 2048)
            try self.validate(self.iamRoleARN, name: "iamRoleARN", parent: name, min: 20)
            try self.validate(self.iamRoleARN, name: "iamRoleARN", parent: name, pattern: "^arn:[\\w-]+:iam::[0-9]+:role(\\u002F)([\\u0021-\\u007E]+\\u002F)?([\\w+=,.@-]+)$")
            try self.validate(self.instanceARN, name: "instanceARN", parent: name, pattern: "^arn:(aws|aws-us-gov):connect:[a-z]{2}-[a-z]+-[0-9-]{1}:[0-9]{1,20}:instance/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")
        }

        private enum CodingKeys: String, CodingKey {
            case iamRoleARN = "IAMRoleARN"
            case instanceARN = "InstanceARN"
        }
    }

    public struct Content: AWSEncodableShape {
        /// The character set of the content.
        public let charset: String?
        /// The textual data of the content.
        public let data: String

        @inlinable
        public init(charset: String? = nil, data: String) {
            self.charset = charset
            self.data = data
        }

        private enum CodingKeys: String, CodingKey {
            case charset = "Charset"
            case data = "Data"
        }
    }

    public struct CreateConfigurationSetEventDestinationRequest: AWSEncodableShape {
        /// The name of the configuration set that the event destination should be associated with.
        public let configurationSetName: String
        /// An object that describes the Amazon Web Services service that email sending event where information is published.
        public let eventDestination: EventDestination

        @inlinable
        public init(configurationSetName: String, eventDestination: EventDestination) {
            self.configurationSetName = configurationSetName
            self.eventDestination = eventDestination
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case eventDestination = "EventDestination"
        }
    }

    public struct CreateConfigurationSetEventDestinationResponse: AWSDecodableShape {
        public init() {}
    }

    public struct CreateConfigurationSetRequest: AWSEncodableShape {
        /// A data structure that contains the name of the configuration set.
        public let configurationSet: ConfigurationSet

        @inlinable
        public init(configurationSet: ConfigurationSet) {
            self.configurationSet = configurationSet
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSet = "ConfigurationSet"
        }
    }

    public struct CreateConfigurationSetResponse: AWSDecodableShape {
        public init() {}
    }

    public struct CreateConfigurationSetTrackingOptionsRequest: AWSEncodableShape {
        /// The name of the configuration set that the tracking options should be associated with.
        public let configurationSetName: String
        public let trackingOptions: TrackingOptions

        @inlinable
        public init(configurationSetName: String, trackingOptions: TrackingOptions) {
            self.configurationSetName = configurationSetName
            self.trackingOptions = trackingOptions
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case trackingOptions = "TrackingOptions"
        }
    }

    public struct CreateConfigurationSetTrackingOptionsResponse: AWSDecodableShape {
        public init() {}
    }

    public struct CreateCustomVerificationEmailTemplateRequest: AWSEncodableShape {
        /// The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.
        public let failureRedirectionURL: String
        /// The email address that the custom verification email is sent from.
        public let fromEmailAddress: String
        /// The URL that the recipient of the verification email is sent to if his or her address is successfully verified.
        public let successRedirectionURL: String
        /// The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see Custom Verification Email Frequently Asked Questions in the Amazon SES Developer Guide.
        public let templateContent: String
        /// The name of the custom verification email template.
        public let templateName: String
        /// The subject line of the custom verification email.
        public let templateSubject: String

        @inlinable
        public init(failureRedirectionURL: String, fromEmailAddress: String, successRedirectionURL: String, templateContent: String, templateName: String, templateSubject: String) {
            self.failureRedirectionURL = failureRedirectionURL
            self.fromEmailAddress = fromEmailAddress
            self.successRedirectionURL = successRedirectionURL
            self.templateContent = templateContent
            self.templateName = templateName
            self.templateSubject = templateSubject
        }

        private enum CodingKeys: String, CodingKey {
            case failureRedirectionURL = "FailureRedirectionURL"
            case fromEmailAddress = "FromEmailAddress"
            case successRedirectionURL = "SuccessRedirectionURL"
            case templateContent = "TemplateContent"
            case templateName = "TemplateName"
            case templateSubject = "TemplateSubject"
        }
    }

    public struct CreateReceiptFilterRequest: AWSEncodableShape {
        /// A data structure that describes the IP address filter to create, which consists of a name, an IP address range, and whether to allow or block mail from it.
        public let filter: ReceiptFilter

        @inlinable
        public init(filter: ReceiptFilter) {
            self.filter = filter
        }

        private enum CodingKeys: String, CodingKey {
            case filter = "Filter"
        }
    }

    public struct CreateReceiptFilterResponse: AWSDecodableShape {
        public init() {}
    }

    public struct CreateReceiptRuleRequest: AWSEncodableShape {
        /// The name of an existing rule after which the new rule is placed. If this parameter is null, the new rule is inserted at the beginning of the rule list.
        public let after: String?
        /// A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.
        public let rule: ReceiptRule
        /// The name of the rule set where the receipt rule is added.
        public let ruleSetName: String

        @inlinable
        public init(after: String? = nil, rule: ReceiptRule, ruleSetName: String) {
            self.after = after
            self.rule = rule
            self.ruleSetName = ruleSetName
        }

        public func validate(name: String) throws {
            try self.rule.validate(name: "\(name).rule")
        }

        private enum CodingKeys: String, CodingKey {
            case after = "After"
            case rule = "Rule"
            case ruleSetName = "RuleSetName"
        }
    }

    public struct CreateReceiptRuleResponse: AWSDecodableShape {
        public init() {}
    }

    public struct CreateReceiptRuleSetRequest: AWSEncodableShape {
        /// The name of the rule set to create. The name must meet the following requirements:   Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Start and end with a letter or number.   Contain 64 characters or fewer.
        public let ruleSetName: String

        @inlinable
        public init(ruleSetName: String) {
            self.ruleSetName = ruleSetName
        }

        private enum CodingKeys: String, CodingKey {
            case ruleSetName = "RuleSetName"
        }
    }

    public struct CreateReceiptRuleSetResponse: AWSDecodableShape {
        public init() {}
    }

    public struct CreateTemplateRequest: AWSEncodableShape {
        /// The content of the email, composed of a subject line and either an HTML part or a text-only part.
        public let template: Template

        @inlinable
        public init(template: Template) {
            self.template = template
        }

        private enum CodingKeys: String, CodingKey {
            case template = "Template"
        }
    }

    public struct CreateTemplateResponse: AWSDecodableShape {
        public init() {}
    }

    public struct CustomVerificationEmailTemplate: AWSDecodableShape {
        /// The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.
        public let failureRedirectionURL: String?
        /// The email address that the custom verification email is sent from.
        public let fromEmailAddress: String?
        /// The URL that the recipient of the verification email is sent to if his or her address is successfully verified.
        public let successRedirectionURL: String?
        /// The name of the custom verification email template.
        public let templateName: String?
        /// The subject line of the custom verification email.
        public let templateSubject: String?

        @inlinable
        public init(failureRedirectionURL: String? = nil, fromEmailAddress: String? = nil, successRedirectionURL: String? = nil, templateName: String? = nil, templateSubject: String? = nil) {
            self.failureRedirectionURL = failureRedirectionURL
            self.fromEmailAddress = fromEmailAddress
            self.successRedirectionURL = successRedirectionURL
            self.templateName = templateName
            self.templateSubject = templateSubject
        }

        private enum CodingKeys: String, CodingKey {
            case failureRedirectionURL = "FailureRedirectionURL"
            case fromEmailAddress = "FromEmailAddress"
            case successRedirectionURL = "SuccessRedirectionURL"
            case templateName = "TemplateName"
            case templateSubject = "TemplateSubject"
        }
    }

    public struct CustomVerificationEmailTemplateAlreadyExistsException: AWSErrorShape {
        /// Indicates that the provided custom verification email template with the specified template name already exists.
        public let customVerificationEmailTemplateName: String?
        public let message: String?

        @inlinable
        public init(customVerificationEmailTemplateName: String? = nil, message: String? = nil) {
            self.customVerificationEmailTemplateName = customVerificationEmailTemplateName
            self.message = message
        }

        private enum CodingKeys: String, CodingKey {
            case customVerificationEmailTemplateName = "CustomVerificationEmailTemplateName"
            case message = "message"
        }
    }

    public struct CustomVerificationEmailTemplateDoesNotExistException: AWSErrorShape {
        /// Indicates that the provided custom verification email template does not exist.
        public let customVerificationEmailTemplateName: String?
        public let message: String?

        @inlinable
        public init(customVerificationEmailTemplateName: String? = nil, message: String? = nil) {
            self.customVerificationEmailTemplateName = customVerificationEmailTemplateName
            self.message = message
        }

        private enum CodingKeys: String, CodingKey {
            case customVerificationEmailTemplateName = "CustomVerificationEmailTemplateName"
            case message = "message"
        }
    }

    public struct DeleteConfigurationSetEventDestinationRequest: AWSEncodableShape {
        /// The name of the configuration set from which to delete the event destination.
        public let configurationSetName: String
        /// The name of the event destination to delete.
        public let eventDestinationName: String

        @inlinable
        public init(configurationSetName: String, eventDestinationName: String) {
            self.configurationSetName = configurationSetName
            self.eventDestinationName = eventDestinationName
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case eventDestinationName = "EventDestinationName"
        }
    }

    public struct DeleteConfigurationSetEventDestinationResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteConfigurationSetRequest: AWSEncodableShape {
        /// The name of the configuration set to delete.
        public let configurationSetName: String

        @inlinable
        public init(configurationSetName: String) {
            self.configurationSetName = configurationSetName
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
        }
    }

    public struct DeleteConfigurationSetResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteConfigurationSetTrackingOptionsRequest: AWSEncodableShape {
        /// The name of the configuration set.
        public let configurationSetName: String

        @inlinable
        public init(configurationSetName: String) {
            self.configurationSetName = configurationSetName
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
        }
    }

    public struct DeleteConfigurationSetTrackingOptionsResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteCustomVerificationEmailTemplateRequest: AWSEncodableShape {
        /// The name of the custom verification email template to delete.
        public let templateName: String

        @inlinable
        public init(templateName: String) {
            self.templateName = templateName
        }

        private enum CodingKeys: String, CodingKey {
            case templateName = "TemplateName"
        }
    }

    public struct DeleteIdentityPolicyRequest: AWSEncodableShape {
        /// The identity that is associated with the policy to delete. You can specify the identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. To successfully call this operation, you must own the identity.
        public let identity: String
        /// The name of the policy to be deleted.
        public let policyName: String

        @inlinable
        public init(identity: String, policyName: String) {
            self.identity = identity
            self.policyName = policyName
        }

        public func validate(name: String) throws {
            try self.validate(self.policyName, name: "policyName", parent: name, max: 64)
            try self.validate(self.policyName, name: "policyName", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case identity = "Identity"
            case policyName = "PolicyName"
        }
    }

    public struct DeleteIdentityPolicyResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteIdentityRequest: AWSEncodableShape {
        /// The identity to be removed from the list of identities for the Amazon Web Services account.
        public let identity: String

        @inlinable
        public init(identity: String) {
            self.identity = identity
        }

        private enum CodingKeys: String, CodingKey {
            case identity = "Identity"
        }
    }

    public struct DeleteIdentityResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteReceiptFilterRequest: AWSEncodableShape {
        /// The name of the IP address filter to delete.
        public let filterName: String

        @inlinable
        public init(filterName: String) {
            self.filterName = filterName
        }

        private enum CodingKeys: String, CodingKey {
            case filterName = "FilterName"
        }
    }

    public struct DeleteReceiptFilterResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteReceiptRuleRequest: AWSEncodableShape {
        /// The name of the receipt rule to delete.
        public let ruleName: String
        /// The name of the receipt rule set that contains the receipt rule to delete.
        public let ruleSetName: String

        @inlinable
        public init(ruleName: String, ruleSetName: String) {
            self.ruleName = ruleName
            self.ruleSetName = ruleSetName
        }

        private enum CodingKeys: String, CodingKey {
            case ruleName = "RuleName"
            case ruleSetName = "RuleSetName"
        }
    }

    public struct DeleteReceiptRuleResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteReceiptRuleSetRequest: AWSEncodableShape {
        /// The name of the receipt rule set to delete.
        public let ruleSetName: String

        @inlinable
        public init(ruleSetName: String) {
            self.ruleSetName = ruleSetName
        }

        private enum CodingKeys: String, CodingKey {
            case ruleSetName = "RuleSetName"
        }
    }

    public struct DeleteReceiptRuleSetResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteTemplateRequest: AWSEncodableShape {
        /// The name of the template to be deleted.
        public let templateName: String

        @inlinable
        public init(templateName: String) {
            self.templateName = templateName
        }

        private enum CodingKeys: String, CodingKey {
            case templateName = "TemplateName"
        }
    }

    public struct DeleteTemplateResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteVerifiedEmailAddressRequest: AWSEncodableShape {
        /// An email address to be removed from the list of verified addresses.
        public let emailAddress: String

        @inlinable
        public init(emailAddress: String) {
            self.emailAddress = emailAddress
        }

        private enum CodingKeys: String, CodingKey {
            case emailAddress = "EmailAddress"
        }
    }

    public struct DeliveryOptions: AWSEncodableShape & AWSDecodableShape {
        /// Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS). If the value is Require, messages are only delivered if a TLS connection can be established. If the value is Optional, messages can be delivered in plain text if a TLS connection can't be established.
        public let tlsPolicy: TlsPolicy?

        @inlinable
        public init(tlsPolicy: TlsPolicy? = nil) {
            self.tlsPolicy = tlsPolicy
        }

        private enum CodingKeys: String, CodingKey {
            case tlsPolicy = "TlsPolicy"
        }
    }

    public struct DescribeActiveReceiptRuleSetRequest: AWSEncodableShape {
        public init() {}
    }

    public struct DescribeActiveReceiptRuleSetResponse: AWSDecodableShape {
        /// The metadata for the currently active receipt rule set. The metadata consists of the rule set name and a timestamp of when the rule set was created.
        public let metadata: ReceiptRuleSetMetadata?
        /// The receipt rules that belong to the active rule set.
        @OptionalCustomCoding<StandardArrayCoder<ReceiptRule>>
        public var rules: [ReceiptRule]?

        @inlinable
        public init(metadata: ReceiptRuleSetMetadata? = nil, rules: [ReceiptRule]? = nil) {
            self.metadata = metadata
            self.rules = rules
        }

        private enum CodingKeys: String, CodingKey {
            case metadata = "Metadata"
            case rules = "Rules"
        }
    }

    public struct DescribeConfigurationSetRequest: AWSEncodableShape {
        /// A list of configuration set attributes to return.
        @OptionalCustomCoding<StandardArrayCoder<ConfigurationSetAttribute>>
        public var configurationSetAttributeNames: [ConfigurationSetAttribute]?
        /// The name of the configuration set to describe.
        public let configurationSetName: String

        @inlinable
        public init(configurationSetAttributeNames: [ConfigurationSetAttribute]? = nil, configurationSetName: String) {
            self.configurationSetAttributeNames = configurationSetAttributeNames
            self.configurationSetName = configurationSetName
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetAttributeNames = "ConfigurationSetAttributeNames"
            case configurationSetName = "ConfigurationSetName"
        }
    }

    public struct DescribeConfigurationSetResponse: AWSDecodableShape {
        /// The configuration set object associated with the specified configuration set.
        public let configurationSet: ConfigurationSet?
        public let deliveryOptions: DeliveryOptions?
        /// A list of event destinations associated with the configuration set.
        @OptionalCustomCoding<StandardArrayCoder<EventDestination>>
        public var eventDestinations: [EventDestination]?
        /// An object that represents the reputation settings for the configuration set.
        public let reputationOptions: ReputationOptions?
        /// The name of the custom open and click tracking domain associated with the configuration set.
        public let trackingOptions: TrackingOptions?

        @inlinable
        public init(configurationSet: ConfigurationSet? = nil, deliveryOptions: DeliveryOptions? = nil, eventDestinations: [EventDestination]? = nil, reputationOptions: ReputationOptions? = nil, trackingOptions: TrackingOptions? = nil) {
            self.configurationSet = configurationSet
            self.deliveryOptions = deliveryOptions
            self.eventDestinations = eventDestinations
            self.reputationOptions = reputationOptions
            self.trackingOptions = trackingOptions
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSet = "ConfigurationSet"
            case deliveryOptions = "DeliveryOptions"
            case eventDestinations = "EventDestinations"
            case reputationOptions = "ReputationOptions"
            case trackingOptions = "TrackingOptions"
        }
    }

    public struct DescribeReceiptRuleRequest: AWSEncodableShape {
        /// The name of the receipt rule.
        public let ruleName: String
        /// The name of the receipt rule set that the receipt rule belongs to.
        public let ruleSetName: String

        @inlinable
        public init(ruleName: String, ruleSetName: String) {
            self.ruleName = ruleName
            self.ruleSetName = ruleSetName
        }

        private enum CodingKeys: String, CodingKey {
            case ruleName = "RuleName"
            case ruleSetName = "RuleSetName"
        }
    }

    public struct DescribeReceiptRuleResponse: AWSDecodableShape {
        /// A data structure that contains the specified receipt rule's name, actions, recipients, domains, enabled status, scan status, and Transport Layer Security (TLS) policy.
        public let rule: ReceiptRule?

        @inlinable
        public init(rule: ReceiptRule? = nil) {
            self.rule = rule
        }

        private enum CodingKeys: String, CodingKey {
            case rule = "Rule"
        }
    }

    public struct DescribeReceiptRuleSetRequest: AWSEncodableShape {
        /// The name of the receipt rule set to describe.
        public let ruleSetName: String

        @inlinable
        public init(ruleSetName: String) {
            self.ruleSetName = ruleSetName
        }

        private enum CodingKeys: String, CodingKey {
            case ruleSetName = "RuleSetName"
        }
    }

    public struct DescribeReceiptRuleSetResponse: AWSDecodableShape {
        /// The metadata for the receipt rule set, which consists of the rule set name and the timestamp of when the rule set was created.
        public let metadata: ReceiptRuleSetMetadata?
        /// A list of the receipt rules that belong to the specified receipt rule set.
        @OptionalCustomCoding<StandardArrayCoder<ReceiptRule>>
        public var rules: [ReceiptRule]?

        @inlinable
        public init(metadata: ReceiptRuleSetMetadata? = nil, rules: [ReceiptRule]? = nil) {
            self.metadata = metadata
            self.rules = rules
        }

        private enum CodingKeys: String, CodingKey {
            case metadata = "Metadata"
            case rules = "Rules"
        }
    }

    public struct Destination: AWSEncodableShape {
        /// The recipients to place on the BCC: line of the message.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var bccAddresses: [String]?
        /// The recipients to place on the CC: line of the message.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var ccAddresses: [String]?
        /// The recipients to place on the To: line of the message.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var toAddresses: [String]?

        @inlinable
        public init(bccAddresses: [String]? = nil, ccAddresses: [String]? = nil, toAddresses: [String]? = nil) {
            self.bccAddresses = bccAddresses
            self.ccAddresses = ccAddresses
            self.toAddresses = toAddresses
        }

        private enum CodingKeys: String, CodingKey {
            case bccAddresses = "BccAddresses"
            case ccAddresses = "CcAddresses"
            case toAddresses = "ToAddresses"
        }
    }

    public struct EventDestination: AWSEncodableShape & AWSDecodableShape {
        /// An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
        public let cloudWatchDestination: CloudWatchDestination?
        /// Sets whether Amazon SES publishes events to this destination when you send an email with the associated configuration set. Set to true to enable publishing to this destination; set to false to prevent publishing to this destination. The default value is false.
        public let enabled: Bool?
        /// An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
        public let kinesisFirehoseDestination: KinesisFirehoseDestination?
        /// The type of email sending events to publish to the event destination.    send - The call was successful and Amazon SES is attempting to deliver the email.    reject - Amazon SES determined that the email contained a virus and rejected it.    bounce - The recipient's mail server permanently rejected the email. This corresponds to a hard bounce.    complaint - The recipient marked the email as spam.    delivery - Amazon SES successfully delivered the email to the recipient's mail server.    open - The recipient received the email and opened it in their email client.    click - The recipient clicked one or more links in the email.    renderingFailure - Amazon SES did not send the email because of a template rendering issue.
        @CustomCoding<StandardArrayCoder<EventType>>
        public var matchingEventTypes: [EventType]
        /// The name of the event destination. The name must meet the following requirements:   Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Contain 64 characters or fewer.
        public let name: String
        /// An object that contains the topic ARN associated with an Amazon Simple Notification Service (Amazon SNS) event destination.
        public let snsDestination: SNSDestination?

        @inlinable
        public init(cloudWatchDestination: CloudWatchDestination? = nil, enabled: Bool? = nil, kinesisFirehoseDestination: KinesisFirehoseDestination? = nil, matchingEventTypes: [EventType], name: String, snsDestination: SNSDestination? = nil) {
            self.cloudWatchDestination = cloudWatchDestination
            self.enabled = enabled
            self.kinesisFirehoseDestination = kinesisFirehoseDestination
            self.matchingEventTypes = matchingEventTypes
            self.name = name
            self.snsDestination = snsDestination
        }

        private enum CodingKeys: String, CodingKey {
            case cloudWatchDestination = "CloudWatchDestination"
            case enabled = "Enabled"
            case kinesisFirehoseDestination = "KinesisFirehoseDestination"
            case matchingEventTypes = "MatchingEventTypes"
            case name = "Name"
            case snsDestination = "SNSDestination"
        }
    }

    public struct EventDestinationAlreadyExistsException: AWSErrorShape {
        /// Indicates that the configuration set does not exist.
        public let configurationSetName: String?
        /// Indicates that the event destination does not exist.
        public let eventDestinationName: String?
        public let message: String?

        @inlinable
        public init(configurationSetName: String? = nil, eventDestinationName: String? = nil, message: String? = nil) {
            self.configurationSetName = configurationSetName
            self.eventDestinationName = eventDestinationName
            self.message = message
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case eventDestinationName = "EventDestinationName"
            case message = "message"
        }
    }

    public struct EventDestinationDoesNotExistException: AWSErrorShape {
        /// Indicates that the configuration set does not exist.
        public let configurationSetName: String?
        /// Indicates that the event destination does not exist.
        public let eventDestinationName: String?
        public let message: String?

        @inlinable
        public init(configurationSetName: String? = nil, eventDestinationName: String? = nil, message: String? = nil) {
            self.configurationSetName = configurationSetName
            self.eventDestinationName = eventDestinationName
            self.message = message
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case eventDestinationName = "EventDestinationName"
            case message = "message"
        }
    }

    public struct ExtensionField: AWSEncodableShape {
        /// The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.
        public let name: String
        /// The value of the header to add. Must contain 2048 characters or fewer, and must not contain newline characters ("\r" or "\n").
        public let value: String

        @inlinable
        public init(name: String, value: String) {
            self.name = name
            self.value = value
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
            case value = "Value"
        }
    }

    public struct FromEmailAddressNotVerifiedException: AWSErrorShape {
        /// Indicates that the from email address associated with the custom verification email template is not verified.
        public let fromEmailAddress: String?
        public let message: String?

        @inlinable
        public init(fromEmailAddress: String? = nil, message: String? = nil) {
            self.fromEmailAddress = fromEmailAddress
            self.message = message
        }

        private enum CodingKeys: String, CodingKey {
            case fromEmailAddress = "FromEmailAddress"
            case message = "message"
        }
    }

    public struct GetAccountSendingEnabledResponse: AWSDecodableShape {
        /// Describes whether email sending is enabled or disabled for your Amazon SES account in the current Amazon Web Services Region.
        public let enabled: Bool?

        @inlinable
        public init(enabled: Bool? = nil) {
            self.enabled = enabled
        }

        private enum CodingKeys: String, CodingKey {
            case enabled = "Enabled"
        }
    }

    public struct GetCustomVerificationEmailTemplateRequest: AWSEncodableShape {
        /// The name of the custom verification email template to retrieve.
        public let templateName: String

        @inlinable
        public init(templateName: String) {
            self.templateName = templateName
        }

        private enum CodingKeys: String, CodingKey {
            case templateName = "TemplateName"
        }
    }

    public struct GetCustomVerificationEmailTemplateResponse: AWSDecodableShape {
        /// The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.
        public let failureRedirectionURL: String?
        /// The email address that the custom verification email is sent from.
        public let fromEmailAddress: String?
        /// The URL that the recipient of the verification email is sent to if his or her address is successfully verified.
        public let successRedirectionURL: String?
        /// The content of the custom verification email.
        public let templateContent: String?
        /// The name of the custom verification email template.
        public let templateName: String?
        /// The subject line of the custom verification email.
        public let templateSubject: String?

        @inlinable
        public init(failureRedirectionURL: String? = nil, fromEmailAddress: String? = nil, successRedirectionURL: String? = nil, templateContent: String? = nil, templateName: String? = nil, templateSubject: String? = nil) {
            self.failureRedirectionURL = failureRedirectionURL
            self.fromEmailAddress = fromEmailAddress
            self.successRedirectionURL = successRedirectionURL
            self.templateContent = templateContent
            self.templateName = templateName
            self.templateSubject = templateSubject
        }

        private enum CodingKeys: String, CodingKey {
            case failureRedirectionURL = "FailureRedirectionURL"
            case fromEmailAddress = "FromEmailAddress"
            case successRedirectionURL = "SuccessRedirectionURL"
            case templateContent = "TemplateContent"
            case templateName = "TemplateName"
            case templateSubject = "TemplateSubject"
        }
    }

    public struct GetIdentityDkimAttributesRequest: AWSEncodableShape {
        /// A list of one or more verified identities - email addresses, domains, or both.
        @CustomCoding<StandardArrayCoder<String>>
        public var identities: [String]

        @inlinable
        public init(identities: [String]) {
            self.identities = identities
        }

        private enum CodingKeys: String, CodingKey {
            case identities = "Identities"
        }
    }

    public struct GetIdentityDkimAttributesResponse: AWSDecodableShape {
        /// The DKIM attributes for an email address or a domain.
        @CustomCoding<StandardDictionaryCoder<String, IdentityDkimAttributes>>
        public var dkimAttributes: [String: IdentityDkimAttributes]

        @inlinable
        public init(dkimAttributes: [String: IdentityDkimAttributes]) {
            self.dkimAttributes = dkimAttributes
        }

        private enum CodingKeys: String, CodingKey {
            case dkimAttributes = "DkimAttributes"
        }
    }

    public struct GetIdentityMailFromDomainAttributesRequest: AWSEncodableShape {
        /// A list of one or more identities.
        @CustomCoding<StandardArrayCoder<String>>
        public var identities: [String]

        @inlinable
        public init(identities: [String]) {
            self.identities = identities
        }

        private enum CodingKeys: String, CodingKey {
            case identities = "Identities"
        }
    }

    public struct GetIdentityMailFromDomainAttributesResponse: AWSDecodableShape {
        /// A map of identities to custom MAIL FROM attributes.
        @CustomCoding<StandardDictionaryCoder<String, IdentityMailFromDomainAttributes>>
        public var mailFromDomainAttributes: [String: IdentityMailFromDomainAttributes]

        @inlinable
        public init(mailFromDomainAttributes: [String: IdentityMailFromDomainAttributes]) {
            self.mailFromDomainAttributes = mailFromDomainAttributes
        }

        private enum CodingKeys: String, CodingKey {
            case mailFromDomainAttributes = "MailFromDomainAttributes"
        }
    }

    public struct GetIdentityNotificationAttributesRequest: AWSEncodableShape {
        /// A list of one or more identities. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.
        @CustomCoding<StandardArrayCoder<String>>
        public var identities: [String]

        @inlinable
        public init(identities: [String]) {
            self.identities = identities
        }

        private enum CodingKeys: String, CodingKey {
            case identities = "Identities"
        }
    }

    public struct GetIdentityNotificationAttributesResponse: AWSDecodableShape {
        /// A map of Identity to IdentityNotificationAttributes.
        @CustomCoding<StandardDictionaryCoder<String, IdentityNotificationAttributes>>
        public var notificationAttributes: [String: IdentityNotificationAttributes]

        @inlinable
        public init(notificationAttributes: [String: IdentityNotificationAttributes]) {
            self.notificationAttributes = notificationAttributes
        }

        private enum CodingKeys: String, CodingKey {
            case notificationAttributes = "NotificationAttributes"
        }
    }

    public struct GetIdentityPoliciesRequest: AWSEncodableShape {
        /// The identity for which the policies are retrieved. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. To successfully call this operation, you must own the identity.
        public let identity: String
        /// A list of the names of policies to be retrieved. You can retrieve a maximum of 20 policies at a time. If you do not know the names of the policies that are attached to the identity, you can use ListIdentityPolicies.
        @CustomCoding<StandardArrayCoder<String>>
        public var policyNames: [String]

        @inlinable
        public init(identity: String, policyNames: [String]) {
            self.identity = identity
            self.policyNames = policyNames
        }

        public func validate(name: String) throws {
            try self.policyNames.forEach {
                try validate($0, name: "policyNames[]", parent: name, max: 64)
                try validate($0, name: "policyNames[]", parent: name, min: 1)
            }
        }

        private enum CodingKeys: String, CodingKey {
            case identity = "Identity"
            case policyNames = "PolicyNames"
        }
    }

    public struct GetIdentityPoliciesResponse: AWSDecodableShape {
        /// A map of policy names to policies.
        @CustomCoding<StandardDictionaryCoder<String, String>>
        public var policies: [String: String]

        @inlinable
        public init(policies: [String: String]) {
            self.policies = policies
        }

        private enum CodingKeys: String, CodingKey {
            case policies = "Policies"
        }
    }

    public struct GetIdentityVerificationAttributesRequest: AWSEncodableShape {
        /// A list of identities.
        @CustomCoding<StandardArrayCoder<String>>
        public var identities: [String]

        @inlinable
        public init(identities: [String]) {
            self.identities = identities
        }

        private enum CodingKeys: String, CodingKey {
            case identities = "Identities"
        }
    }

    public struct GetIdentityVerificationAttributesResponse: AWSDecodableShape {
        /// A map of Identities to IdentityVerificationAttributes objects.
        @CustomCoding<StandardDictionaryCoder<String, IdentityVerificationAttributes>>
        public var verificationAttributes: [String: IdentityVerificationAttributes]

        @inlinable
        public init(verificationAttributes: [String: IdentityVerificationAttributes]) {
            self.verificationAttributes = verificationAttributes
        }

        private enum CodingKeys: String, CodingKey {
            case verificationAttributes = "VerificationAttributes"
        }
    }

    public struct GetSendQuotaResponse: AWSDecodableShape {
        /// The maximum number of emails the user is allowed to send in a 24-hour interval. A value of -1 signifies an unlimited quota.
        public let max24HourSend: Double?
        /// The maximum number of emails that Amazon SES can accept from the user's account per second.  The rate at which Amazon SES accepts the user's messages might be less than the maximum send rate.
        public let maxSendRate: Double?
        /// The number of emails sent during the previous 24 hours.
        public let sentLast24Hours: Double?

        @inlinable
        public init(max24HourSend: Double? = nil, maxSendRate: Double? = nil, sentLast24Hours: Double? = nil) {
            self.max24HourSend = max24HourSend
            self.maxSendRate = maxSendRate
            self.sentLast24Hours = sentLast24Hours
        }

        private enum CodingKeys: String, CodingKey {
            case max24HourSend = "Max24HourSend"
            case maxSendRate = "MaxSendRate"
            case sentLast24Hours = "SentLast24Hours"
        }
    }

    public struct GetSendStatisticsResponse: AWSDecodableShape {
        /// A list of data points, each of which represents 15 minutes of activity.
        @OptionalCustomCoding<StandardArrayCoder<SendDataPoint>>
        public var sendDataPoints: [SendDataPoint]?

        @inlinable
        public init(sendDataPoints: [SendDataPoint]? = nil) {
            self.sendDataPoints = sendDataPoints
        }

        private enum CodingKeys: String, CodingKey {
            case sendDataPoints = "SendDataPoints"
        }
    }

    public struct GetTemplateRequest: AWSEncodableShape {
        /// The name of the template to retrieve.
        public let templateName: String

        @inlinable
        public init(templateName: String) {
            self.templateName = templateName
        }

        private enum CodingKeys: String, CodingKey {
            case templateName = "TemplateName"
        }
    }

    public struct GetTemplateResponse: AWSDecodableShape {
        public let template: Template?

        @inlinable
        public init(template: Template? = nil) {
            self.template = template
        }

        private enum CodingKeys: String, CodingKey {
            case template = "Template"
        }
    }

    public struct IdentityDkimAttributes: AWSDecodableShape {
        /// Is true if DKIM signing is enabled for email sent from the identity. It's false otherwise. The default value is true.
        public let dkimEnabled: Bool
        /// A set of character strings that represent the domain's identity. Using these tokens, you need to create DNS CNAME records that point to DKIM public keys that are hosted by Amazon SES. Amazon Web Services eventually detects that you've updated your DNS records. This detection process might take up to 72 hours. After successful detection, Amazon SES is able to DKIM-sign email originating from that domain. (This only applies to domain identities, not email address identities.) For more information about creating DNS records using DKIM tokens, see the Amazon SES Developer Guide.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var dkimTokens: [String]?
        /// Describes whether Amazon SES has successfully verified the DKIM DNS records (tokens) published in the domain name's DNS. (This only applies to domain identities, not email address identities.)
        public let dkimVerificationStatus: VerificationStatus

        @inlinable
        public init(dkimEnabled: Bool, dkimTokens: [String]? = nil, dkimVerificationStatus: VerificationStatus) {
            self.dkimEnabled = dkimEnabled
            self.dkimTokens = dkimTokens
            self.dkimVerificationStatus = dkimVerificationStatus
        }

        private enum CodingKeys: String, CodingKey {
            case dkimEnabled = "DkimEnabled"
            case dkimTokens = "DkimTokens"
            case dkimVerificationStatus = "DkimVerificationStatus"
        }
    }

    public struct IdentityMailFromDomainAttributes: AWSDecodableShape {
        /// The action that Amazon SES takes if it cannot successfully read the required MX record when you send an email. A value of UseDefaultValue indicates that if Amazon SES cannot read the required MX record, it uses amazonses.com (or a subdomain of that) as the MAIL FROM domain. A value of RejectMessage indicates that if Amazon SES cannot read the required MX record, Amazon SES returns a MailFromDomainNotVerified error and does not send the email. The custom MAIL FROM setup states that result in this behavior are Pending, Failed, and TemporaryFailure.
        public let behaviorOnMXFailure: BehaviorOnMXFailure
        /// The custom MAIL FROM domain that the identity is configured to use.
        public let mailFromDomain: String
        /// The state that indicates whether Amazon SES has successfully read the MX record required for custom MAIL FROM domain setup. If the state is Success, Amazon SES uses the specified custom MAIL FROM domain when the verified identity sends an email. All other states indicate that Amazon SES takes the action described by BehaviorOnMXFailure.
        public let mailFromDomainStatus: CustomMailFromStatus

        @inlinable
        public init(behaviorOnMXFailure: BehaviorOnMXFailure, mailFromDomain: String, mailFromDomainStatus: CustomMailFromStatus) {
            self.behaviorOnMXFailure = behaviorOnMXFailure
            self.mailFromDomain = mailFromDomain
            self.mailFromDomainStatus = mailFromDomainStatus
        }

        private enum CodingKeys: String, CodingKey {
            case behaviorOnMXFailure = "BehaviorOnMXFailure"
            case mailFromDomain = "MailFromDomain"
            case mailFromDomainStatus = "MailFromDomainStatus"
        }
    }

    public struct IdentityNotificationAttributes: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES publishes bounce notifications.
        public let bounceTopic: String
        /// The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES publishes complaint notifications.
        public let complaintTopic: String
        /// The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES publishes delivery notifications.
        public let deliveryTopic: String
        /// Describes whether Amazon SES forwards bounce and complaint notifications as email. true indicates that Amazon SES forwards bounce and complaint notifications as email, while false indicates that bounce and complaint notifications are published only to the specified bounce and complaint Amazon SNS topics.
        public let forwardingEnabled: Bool
        /// Describes whether Amazon SES includes the original email headers in Amazon SNS notifications of type Bounce. A value of true specifies that Amazon SES includes headers in bounce notifications, and a value of false specifies that Amazon SES does not include headers in bounce notifications.
        public let headersInBounceNotificationsEnabled: Bool?
        /// Describes whether Amazon SES includes the original email headers in Amazon SNS notifications of type Complaint. A value of true specifies that Amazon SES includes headers in complaint notifications, and a value of false specifies that Amazon SES does not include headers in complaint notifications.
        public let headersInComplaintNotificationsEnabled: Bool?
        /// Describes whether Amazon SES includes the original email headers in Amazon SNS notifications of type Delivery. A value of true specifies that Amazon SES includes headers in delivery notifications, and a value of false specifies that Amazon SES does not include headers in delivery notifications.
        public let headersInDeliveryNotificationsEnabled: Bool?

        @inlinable
        public init(bounceTopic: String, complaintTopic: String, deliveryTopic: String, forwardingEnabled: Bool, headersInBounceNotificationsEnabled: Bool? = nil, headersInComplaintNotificationsEnabled: Bool? = nil, headersInDeliveryNotificationsEnabled: Bool? = nil) {
            self.bounceTopic = bounceTopic
            self.complaintTopic = complaintTopic
            self.deliveryTopic = deliveryTopic
            self.forwardingEnabled = forwardingEnabled
            self.headersInBounceNotificationsEnabled = headersInBounceNotificationsEnabled
            self.headersInComplaintNotificationsEnabled = headersInComplaintNotificationsEnabled
            self.headersInDeliveryNotificationsEnabled = headersInDeliveryNotificationsEnabled
        }

        private enum CodingKeys: String, CodingKey {
            case bounceTopic = "BounceTopic"
            case complaintTopic = "ComplaintTopic"
            case deliveryTopic = "DeliveryTopic"
            case forwardingEnabled = "ForwardingEnabled"
            case headersInBounceNotificationsEnabled = "HeadersInBounceNotificationsEnabled"
            case headersInComplaintNotificationsEnabled = "HeadersInComplaintNotificationsEnabled"
            case headersInDeliveryNotificationsEnabled = "HeadersInDeliveryNotificationsEnabled"
        }
    }

    public struct IdentityVerificationAttributes: AWSDecodableShape {
        /// The verification status of the identity: "Pending", "Success", "Failed", or "TemporaryFailure".
        public let verificationStatus: VerificationStatus
        /// The verification token for a domain identity. Null for email address identities.
        public let verificationToken: String?

        @inlinable
        public init(verificationStatus: VerificationStatus, verificationToken: String? = nil) {
            self.verificationStatus = verificationStatus
            self.verificationToken = verificationToken
        }

        private enum CodingKeys: String, CodingKey {
            case verificationStatus = "VerificationStatus"
            case verificationToken = "VerificationToken"
        }
    }

    public struct InvalidCloudWatchDestinationException: AWSErrorShape {
        /// Indicates that the configuration set does not exist.
        public let configurationSetName: String?
        /// Indicates that the event destination does not exist.
        public let eventDestinationName: String?
        public let message: String?

        @inlinable
        public init(configurationSetName: String? = nil, eventDestinationName: String? = nil, message: String? = nil) {
            self.configurationSetName = configurationSetName
            self.eventDestinationName = eventDestinationName
            self.message = message
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case eventDestinationName = "EventDestinationName"
            case message = "message"
        }
    }

    public struct InvalidFirehoseDestinationException: AWSErrorShape {
        /// Indicates that the configuration set does not exist.
        public let configurationSetName: String?
        /// Indicates that the event destination does not exist.
        public let eventDestinationName: String?
        public let message: String?

        @inlinable
        public init(configurationSetName: String? = nil, eventDestinationName: String? = nil, message: String? = nil) {
            self.configurationSetName = configurationSetName
            self.eventDestinationName = eventDestinationName
            self.message = message
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case eventDestinationName = "EventDestinationName"
            case message = "message"
        }
    }

    public struct InvalidLambdaFunctionException: AWSErrorShape {
        /// Indicates that the ARN of the function was not found.
        public let functionArn: String?
        public let message: String?

        @inlinable
        public init(functionArn: String? = nil, message: String? = nil) {
            self.functionArn = functionArn
            self.message = message
        }

        private enum CodingKeys: String, CodingKey {
            case functionArn = "FunctionArn"
            case message = "message"
        }
    }

    public struct InvalidRenderingParameterException: AWSErrorShape {
        public let message: String?
        public let templateName: String?

        @inlinable
        public init(message: String? = nil, templateName: String? = nil) {
            self.message = message
            self.templateName = templateName
        }

        private enum CodingKeys: String, CodingKey {
            case message = "message"
            case templateName = "TemplateName"
        }
    }

    public struct InvalidS3ConfigurationException: AWSErrorShape {
        /// Indicated that the S3 Bucket was not found.
        public let bucket: String?
        public let message: String?

        @inlinable
        public init(bucket: String? = nil, message: String? = nil) {
            self.bucket = bucket
            self.message = message
        }

        private enum CodingKeys: String, CodingKey {
            case bucket = "Bucket"
            case message = "message"
        }
    }

    public struct InvalidSNSDestinationException: AWSErrorShape {
        /// Indicates that the configuration set does not exist.
        public let configurationSetName: String?
        /// Indicates that the event destination does not exist.
        public let eventDestinationName: String?
        public let message: String?

        @inlinable
        public init(configurationSetName: String? = nil, eventDestinationName: String? = nil, message: String? = nil) {
            self.configurationSetName = configurationSetName
            self.eventDestinationName = eventDestinationName
            self.message = message
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case eventDestinationName = "EventDestinationName"
            case message = "message"
        }
    }

    public struct InvalidSnsTopicException: AWSErrorShape {
        public let message: String?
        /// Indicates that the topic does not exist.
        public let topic: String?

        @inlinable
        public init(message: String? = nil, topic: String? = nil) {
            self.message = message
            self.topic = topic
        }

        private enum CodingKeys: String, CodingKey {
            case message = "message"
            case topic = "Topic"
        }
    }

    public struct InvalidTemplateException: AWSErrorShape {
        public let message: String?
        public let templateName: String?

        @inlinable
        public init(message: String? = nil, templateName: String? = nil) {
            self.message = message
            self.templateName = templateName
        }

        private enum CodingKeys: String, CodingKey {
            case message = "message"
            case templateName = "TemplateName"
        }
    }

    public struct KinesisFirehoseDestination: AWSEncodableShape & AWSDecodableShape {
        /// The ARN of the Amazon Kinesis Firehose stream that email sending events should be published to.
        public let deliveryStreamARN: String
        /// The ARN of the IAM role under which Amazon SES publishes email sending events to the Amazon Kinesis Firehose stream.
        public let iamRoleARN: String

        @inlinable
        public init(deliveryStreamARN: String, iamRoleARN: String) {
            self.deliveryStreamARN = deliveryStreamARN
            self.iamRoleARN = iamRoleARN
        }

        private enum CodingKeys: String, CodingKey {
            case deliveryStreamARN = "DeliveryStreamARN"
            case iamRoleARN = "IAMRoleARN"
        }
    }

    public struct LambdaAction: AWSEncodableShape & AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the Amazon Web Services Lambda function. An example of an Amazon Web Services Lambda function ARN is arn:aws:lambda:us-west-2:account-id:function:MyFunction. For more information about Amazon Web Services Lambda, see the Amazon Web Services Lambda Developer Guide.
        public let functionArn: String
        /// The invocation type of the Amazon Web Services Lambda function. An invocation type of RequestResponse means that the execution of the function immediately results in a response, and a value of Event means that the function is invoked asynchronously. The default value is Event. For information about Amazon Web Services Lambda invocation types, see the Amazon Web Services Lambda Developer Guide.  There is a 30-second timeout on RequestResponse invocations. You should use Event invocation in most cases. Use RequestResponse only to make a mail flow decision, such as whether to stop the receipt rule or the receipt rule set.
        public let invocationType: InvocationType?
        /// The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the Lambda action is executed. You can find the ARN of a topic by using the ListTopics operation in Amazon SNS. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
        public let topicArn: String?

        @inlinable
        public init(functionArn: String, invocationType: InvocationType? = nil, topicArn: String? = nil) {
            self.functionArn = functionArn
            self.invocationType = invocationType
            self.topicArn = topicArn
        }

        private enum CodingKeys: String, CodingKey {
            case functionArn = "FunctionArn"
            case invocationType = "InvocationType"
            case topicArn = "TopicArn"
        }
    }

    public struct ListConfigurationSetsRequest: AWSEncodableShape {
        /// The number of configuration sets to return.
        public let maxItems: Int?
        /// A token returned from a previous call to ListConfigurationSets to indicate the position of the configuration set in the configuration set list.
        public let nextToken: String?

        @inlinable
        public init(maxItems: Int? = nil, nextToken: String? = nil) {
            self.maxItems = maxItems
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case maxItems = "MaxItems"
            case nextToken = "NextToken"
        }
    }

    public struct ListConfigurationSetsResponse: AWSDecodableShape {
        /// A list of configuration sets.
        @OptionalCustomCoding<StandardArrayCoder<ConfigurationSet>>
        public var configurationSets: [ConfigurationSet]?
        /// A token indicating that there are additional configuration sets available to be listed. Pass this token to successive calls of ListConfigurationSets.
        public let nextToken: String?

        @inlinable
        public init(configurationSets: [ConfigurationSet]? = nil, nextToken: String? = nil) {
            self.configurationSets = configurationSets
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSets = "ConfigurationSets"
            case nextToken = "NextToken"
        }
    }

    public struct ListCustomVerificationEmailTemplatesRequest: AWSEncodableShape {
        /// The maximum number of custom verification email templates to return. This value must be at least 1 and less than or equal to 50. If you do not specify a value, or if you specify a value less than 1 or greater than 50, the operation returns up to 50 results.
        public let maxResults: Int?
        /// An array the contains the name and creation time stamp for each template in your Amazon SES account.
        public let nextToken: String?

        @inlinable
        public init(maxResults: Int? = nil, nextToken: String? = nil) {
            self.maxResults = maxResults
            self.nextToken = nextToken
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 50)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
        }
    }

    public struct ListCustomVerificationEmailTemplatesResponse: AWSDecodableShape {
        /// A list of the custom verification email templates that exist in your account.
        @OptionalCustomCoding<StandardArrayCoder<CustomVerificationEmailTemplate>>
        public var customVerificationEmailTemplates: [CustomVerificationEmailTemplate]?
        /// A token indicating that there are additional custom verification email templates available to be listed. Pass this token to a subsequent call to ListTemplates to retrieve the next 50 custom verification email templates.
        public let nextToken: String?

        @inlinable
        public init(customVerificationEmailTemplates: [CustomVerificationEmailTemplate]? = nil, nextToken: String? = nil) {
            self.customVerificationEmailTemplates = customVerificationEmailTemplates
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case customVerificationEmailTemplates = "CustomVerificationEmailTemplates"
            case nextToken = "NextToken"
        }
    }

    public struct ListIdentitiesRequest: AWSEncodableShape {
        /// The type of the identities to list. Possible values are "EmailAddress" and "Domain". If this parameter is omitted, then all identities are listed.
        public let identityType: IdentityType?
        /// The maximum number of identities per page. Possible values are 1-1000 inclusive.
        public let maxItems: Int?
        /// The token to use for pagination.
        public let nextToken: String?

        @inlinable
        public init(identityType: IdentityType? = nil, maxItems: Int? = nil, nextToken: String? = nil) {
            self.identityType = identityType
            self.maxItems = maxItems
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case identityType = "IdentityType"
            case maxItems = "MaxItems"
            case nextToken = "NextToken"
        }
    }

    public struct ListIdentitiesResponse: AWSDecodableShape {
        /// A list of identities.
        @CustomCoding<StandardArrayCoder<String>>
        public var identities: [String]
        /// The token used for pagination.
        public let nextToken: String?

        @inlinable
        public init(identities: [String], nextToken: String? = nil) {
            self.identities = identities
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case identities = "Identities"
            case nextToken = "NextToken"
        }
    }

    public struct ListIdentityPoliciesRequest: AWSEncodableShape {
        /// The identity that is associated with the policy for which the policies are listed. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. To successfully call this operation, you must own the identity.
        public let identity: String

        @inlinable
        public init(identity: String) {
            self.identity = identity
        }

        private enum CodingKeys: String, CodingKey {
            case identity = "Identity"
        }
    }

    public struct ListIdentityPoliciesResponse: AWSDecodableShape {
        /// A list of names of policies that apply to the specified identity.
        @CustomCoding<StandardArrayCoder<String>>
        public var policyNames: [String]

        @inlinable
        public init(policyNames: [String]) {
            self.policyNames = policyNames
        }

        private enum CodingKeys: String, CodingKey {
            case policyNames = "PolicyNames"
        }
    }

    public struct ListReceiptFiltersRequest: AWSEncodableShape {
        public init() {}
    }

    public struct ListReceiptFiltersResponse: AWSDecodableShape {
        /// A list of IP address filter data structures, which each consist of a name, an IP address range, and whether to allow or block mail from it.
        @OptionalCustomCoding<StandardArrayCoder<ReceiptFilter>>
        public var filters: [ReceiptFilter]?

        @inlinable
        public init(filters: [ReceiptFilter]? = nil) {
            self.filters = filters
        }

        private enum CodingKeys: String, CodingKey {
            case filters = "Filters"
        }
    }

    public struct ListReceiptRuleSetsRequest: AWSEncodableShape {
        /// A token returned from a previous call to ListReceiptRuleSets to indicate the position in the receipt rule set list.
        public let nextToken: String?

        @inlinable
        public init(nextToken: String? = nil) {
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
        }
    }

    public struct ListReceiptRuleSetsResponse: AWSDecodableShape {
        /// A token indicating that there are additional receipt rule sets available to be listed. Pass this token to successive calls of ListReceiptRuleSets to retrieve up to 100 receipt rule sets at a time.
        public let nextToken: String?
        /// The metadata for the currently active receipt rule set. The metadata consists of the rule set name and the timestamp of when the rule set was created.
        @OptionalCustomCoding<StandardArrayCoder<ReceiptRuleSetMetadata>>
        public var ruleSets: [ReceiptRuleSetMetadata]?

        @inlinable
        public init(nextToken: String? = nil, ruleSets: [ReceiptRuleSetMetadata]? = nil) {
            self.nextToken = nextToken
            self.ruleSets = ruleSets
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case ruleSets = "RuleSets"
        }
    }

    public struct ListTemplatesRequest: AWSEncodableShape {
        /// The maximum number of templates to return. This value must be at least 1 and less than or equal to 100. If more than 100 items are requested, the page size will automatically set to 100. If you do not specify a value, 10 is the default page size.
        public let maxItems: Int?
        /// A token returned from a previous call to ListTemplates to indicate the position in the list of email templates.
        public let nextToken: String?

        @inlinable
        public init(maxItems: Int? = nil, nextToken: String? = nil) {
            self.maxItems = maxItems
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case maxItems = "MaxItems"
            case nextToken = "NextToken"
        }
    }

    public struct ListTemplatesResponse: AWSDecodableShape {
        /// A token indicating that there are additional email templates available to be listed. Pass this token to a subsequent call to ListTemplates to retrieve the next set of email templates within your page size.
        public let nextToken: String?
        /// An array the contains the name and creation time stamp for each template in your Amazon SES account.
        @OptionalCustomCoding<StandardArrayCoder<TemplateMetadata>>
        public var templatesMetadata: [TemplateMetadata]?

        @inlinable
        public init(nextToken: String? = nil, templatesMetadata: [TemplateMetadata]? = nil) {
            self.nextToken = nextToken
            self.templatesMetadata = templatesMetadata
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case templatesMetadata = "TemplatesMetadata"
        }
    }

    public struct ListVerifiedEmailAddressesResponse: AWSDecodableShape {
        /// A list of email addresses that have been verified.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var verifiedEmailAddresses: [String]?

        @inlinable
        public init(verifiedEmailAddresses: [String]? = nil) {
            self.verifiedEmailAddresses = verifiedEmailAddresses
        }

        private enum CodingKeys: String, CodingKey {
            case verifiedEmailAddresses = "VerifiedEmailAddresses"
        }
    }

    public struct Message: AWSEncodableShape {
        /// The message body.
        public let body: Body
        /// The subject of the message: A short summary of the content, which appears in the recipient's inbox.
        public let subject: Content

        @inlinable
        public init(body: Body, subject: Content) {
            self.body = body
            self.subject = subject
        }

        private enum CodingKeys: String, CodingKey {
            case body = "Body"
            case subject = "Subject"
        }
    }

    public struct MessageDsn: AWSEncodableShape {
        /// When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
        public let arrivalDate: Date?
        /// Additional X-headers to include in the DSN.
        @OptionalCustomCoding<StandardArrayCoder<ExtensionField>>
        public var extensionFields: [ExtensionField]?
        /// The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name). The default value is dns; inbound-smtp.[region].amazonaws.com.
        public let reportingMta: String

        @inlinable
        public init(arrivalDate: Date? = nil, extensionFields: [ExtensionField]? = nil, reportingMta: String) {
            self.arrivalDate = arrivalDate
            self.extensionFields = extensionFields
            self.reportingMta = reportingMta
        }

        private enum CodingKeys: String, CodingKey {
            case arrivalDate = "ArrivalDate"
            case extensionFields = "ExtensionFields"
            case reportingMta = "ReportingMta"
        }
    }

    public struct MessageTag: AWSEncodableShape {
        /// The name of the tag. The name must meet the following requirements:   Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Contain 256 characters or fewer.
        public let name: String
        /// The value of the tag. The value must meet the following requirements:   Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Contain 256 characters or fewer.
        public let value: String

        @inlinable
        public init(name: String, value: String) {
            self.name = name
            self.value = value
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
            case value = "Value"
        }
    }

    public struct MissingRenderingAttributeException: AWSErrorShape {
        public let message: String?
        public let templateName: String?

        @inlinable
        public init(message: String? = nil, templateName: String? = nil) {
            self.message = message
            self.templateName = templateName
        }

        private enum CodingKeys: String, CodingKey {
            case message = "message"
            case templateName = "TemplateName"
        }
    }

    public struct PutConfigurationSetDeliveryOptionsRequest: AWSEncodableShape {
        /// The name of the configuration set.
        public let configurationSetName: String
        /// Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS).
        public let deliveryOptions: DeliveryOptions?

        @inlinable
        public init(configurationSetName: String, deliveryOptions: DeliveryOptions? = nil) {
            self.configurationSetName = configurationSetName
            self.deliveryOptions = deliveryOptions
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case deliveryOptions = "DeliveryOptions"
        }
    }

    public struct PutConfigurationSetDeliveryOptionsResponse: AWSDecodableShape {
        public init() {}
    }

    public struct PutIdentityPolicyRequest: AWSEncodableShape {
        /// The identity to which that the policy applies. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. To successfully call this operation, you must own the identity.
        public let identity: String
        /// The text of the policy in JSON format. The policy cannot exceed 4 KB. For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.
        public let policy: String
        /// The name of the policy. The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
        public let policyName: String

        @inlinable
        public init(identity: String, policy: String, policyName: String) {
            self.identity = identity
            self.policy = policy
            self.policyName = policyName
        }

        public func validate(name: String) throws {
            try self.validate(self.policy, name: "policy", parent: name, min: 1)
            try self.validate(self.policyName, name: "policyName", parent: name, max: 64)
            try self.validate(self.policyName, name: "policyName", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case identity = "Identity"
            case policy = "Policy"
            case policyName = "PolicyName"
        }
    }

    public struct PutIdentityPolicyResponse: AWSDecodableShape {
        public init() {}
    }

    public struct RawMessage: AWSEncodableShape {
        /// The raw data of the message. This data needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you. In all cases, the client must ensure that the message format complies with Internet email standards regarding email header fields, MIME types, and MIME encoding. The To:, CC:, and BCC: headers in the raw message can contain a group list. If you are using SendRawEmail with sending authorization, you can include X-headers in the raw message to specify the "Source," "From," and "Return-Path" addresses. For more information, see the documentation for SendRawEmail.   Do not include these X-headers in the DKIM signature, because they are removed by Amazon SES before sending the email.  For more information, go to the Amazon SES Developer Guide.
        public let data: AWSBase64Data

        @inlinable
        public init(data: AWSBase64Data) {
            self.data = data
        }

        private enum CodingKeys: String, CodingKey {
            case data = "Data"
        }
    }

    public struct ReceiptAction: AWSEncodableShape & AWSDecodableShape {
        /// Adds a header to the received email.
        public let addHeaderAction: AddHeaderAction?
        /// Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).
        public let bounceAction: BounceAction?
        /// Parses the received message and starts an email contact in Amazon Connect on your behalf.
        public let connectAction: ConnectAction?
        /// Calls an Amazon Web Services Lambda function, and optionally, publishes a notification to Amazon SNS.
        public let lambdaAction: LambdaAction?
        /// Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.
        public let s3Action: S3Action?
        /// Publishes the email content within a notification to Amazon SNS.
        public let snsAction: SNSAction?
        /// Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.
        public let stopAction: StopAction?
        /// Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS.
        public let workmailAction: WorkmailAction?

        @inlinable
        public init(addHeaderAction: AddHeaderAction? = nil, bounceAction: BounceAction? = nil, connectAction: ConnectAction? = nil, lambdaAction: LambdaAction? = nil, s3Action: S3Action? = nil, snsAction: SNSAction? = nil, stopAction: StopAction? = nil, workmailAction: WorkmailAction? = nil) {
            self.addHeaderAction = addHeaderAction
            self.bounceAction = bounceAction
            self.connectAction = connectAction
            self.lambdaAction = lambdaAction
            self.s3Action = s3Action
            self.snsAction = snsAction
            self.stopAction = stopAction
            self.workmailAction = workmailAction
        }

        public func validate(name: String) throws {
            try self.connectAction?.validate(name: "\(name).connectAction")
            try self.s3Action?.validate(name: "\(name).s3Action")
        }

        private enum CodingKeys: String, CodingKey {
            case addHeaderAction = "AddHeaderAction"
            case bounceAction = "BounceAction"
            case connectAction = "ConnectAction"
            case lambdaAction = "LambdaAction"
            case s3Action = "S3Action"
            case snsAction = "SNSAction"
            case stopAction = "StopAction"
            case workmailAction = "WorkmailAction"
        }
    }

    public struct ReceiptFilter: AWSEncodableShape & AWSDecodableShape {
        /// A structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.
        public let ipFilter: ReceiptIpFilter
        /// The name of the IP address filter. The name must meet the following requirements:   Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Start and end with a letter or number.   Contain 64 characters or fewer.
        public let name: String

        @inlinable
        public init(ipFilter: ReceiptIpFilter, name: String) {
            self.ipFilter = ipFilter
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case ipFilter = "IpFilter"
            case name = "Name"
        }
    }

    public struct ReceiptIpFilter: AWSEncodableShape & AWSDecodableShape {
        /// A single IP address or a range of IP addresses to block or allow, specified in Classless Inter-Domain Routing (CIDR) notation. An example of a single email address is 10.0.0.1. An example of a range of IP addresses is 10.0.0.1/24. For more information about CIDR notation, see RFC 2317.
        public let cidr: String
        /// Indicates whether to block or allow incoming mail from the specified IP addresses.
        public let policy: ReceiptFilterPolicy

        @inlinable
        public init(cidr: String, policy: ReceiptFilterPolicy) {
            self.cidr = cidr
            self.policy = policy
        }

        private enum CodingKeys: String, CodingKey {
            case cidr = "Cidr"
            case policy = "Policy"
        }
    }

    public struct ReceiptRule: AWSEncodableShape & AWSDecodableShape {
        /// An ordered list of actions to perform on messages that match at least one of the recipient email addresses or domains specified in the receipt rule.
        @OptionalCustomCoding<StandardArrayCoder<ReceiptAction>>
        public var actions: [ReceiptAction]?
        /// If true, the receipt rule is active. The default value is false.
        public let enabled: Bool?
        /// The name of the receipt rule. The name must meet the following requirements:   Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or periods (.).    Start and end with a letter or number.   Contain 64 characters or fewer.
        public let name: String
        /// The recipient domains and email addresses that the receipt rule applies to. If this field is not specified, this rule matches all recipients on all verified domains.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var recipients: [String]?
        /// If true, then messages that this receipt rule applies to are scanned for spam and viruses. The default value is false.
        public let scanEnabled: Bool?
        /// Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS). If this parameter is set to Require, Amazon SES bounces emails that are not received over TLS. The default is Optional.
        public let tlsPolicy: TlsPolicy?

        @inlinable
        public init(actions: [ReceiptAction]? = nil, enabled: Bool? = nil, name: String, recipients: [String]? = nil, scanEnabled: Bool? = nil, tlsPolicy: TlsPolicy? = nil) {
            self.actions = actions
            self.enabled = enabled
            self.name = name
            self.recipients = recipients
            self.scanEnabled = scanEnabled
            self.tlsPolicy = tlsPolicy
        }

        public func validate(name: String) throws {
            try self.actions?.forEach {
                try $0.validate(name: "\(name).actions[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case actions = "Actions"
            case enabled = "Enabled"
            case name = "Name"
            case recipients = "Recipients"
            case scanEnabled = "ScanEnabled"
            case tlsPolicy = "TlsPolicy"
        }
    }

    public struct ReceiptRuleSetMetadata: AWSDecodableShape {
        /// The date and time the receipt rule set was created.
        public let createdTimestamp: Date?
        /// The name of the receipt rule set. The name must meet the following requirements:   Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Start and end with a letter or number.   Contain 64 characters or fewer.
        public let name: String?

        @inlinable
        public init(createdTimestamp: Date? = nil, name: String? = nil) {
            self.createdTimestamp = createdTimestamp
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case createdTimestamp = "CreatedTimestamp"
            case name = "Name"
        }
    }

    public struct RecipientDsnFields: AWSEncodableShape {
        /// The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address. This is required by RFC 3464.
        public let action: DsnAction
        /// An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 for the correct formatting of this parameter.
        public let diagnosticCode: String?
        /// Additional X-headers to include in the DSN.
        @OptionalCustomCoding<StandardArrayCoder<ExtensionField>>
        public var extensionFields: [ExtensionField]?
        /// The email address that the message was ultimately delivered to. This corresponds to the Final-Recipient in the DSN. If not specified, FinalRecipient is set to the Recipient specified in the BouncedRecipientInfo structure. Either FinalRecipient or the recipient in BouncedRecipientInfo must be a recipient of the original bounced message.  Do not prepend the FinalRecipient email address with rfc 822;, as described in RFC 3798.
        public let finalRecipient: String?
        /// The time the final delivery attempt was made, in RFC 822 date-time format.
        public let lastAttemptDate: Date?
        /// The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name). This parameter typically applies only to propagating synchronous bounces.
        public let remoteMta: String?
        /// The status code that indicates what went wrong. This is required by RFC 3464.
        public let status: String

        @inlinable
        public init(action: DsnAction, diagnosticCode: String? = nil, extensionFields: [ExtensionField]? = nil, finalRecipient: String? = nil, lastAttemptDate: Date? = nil, remoteMta: String? = nil, status: String) {
            self.action = action
            self.diagnosticCode = diagnosticCode
            self.extensionFields = extensionFields
            self.finalRecipient = finalRecipient
            self.lastAttemptDate = lastAttemptDate
            self.remoteMta = remoteMta
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case action = "Action"
            case diagnosticCode = "DiagnosticCode"
            case extensionFields = "ExtensionFields"
            case finalRecipient = "FinalRecipient"
            case lastAttemptDate = "LastAttemptDate"
            case remoteMta = "RemoteMta"
            case status = "Status"
        }
    }

    public struct ReorderReceiptRuleSetRequest: AWSEncodableShape {
        /// The specified receipt rule set's receipt rules, in order.
        @CustomCoding<StandardArrayCoder<String>>
        public var ruleNames: [String]
        /// The name of the receipt rule set to reorder.
        public let ruleSetName: String

        @inlinable
        public init(ruleNames: [String], ruleSetName: String) {
            self.ruleNames = ruleNames
            self.ruleSetName = ruleSetName
        }

        private enum CodingKeys: String, CodingKey {
            case ruleNames = "RuleNames"
            case ruleSetName = "RuleSetName"
        }
    }

    public struct ReorderReceiptRuleSetResponse: AWSDecodableShape {
        public init() {}
    }

    public struct ReputationOptions: AWSDecodableShape {
        /// The date and time at which the reputation metrics for the configuration set were last reset. Resetting these metrics is known as a fresh start. When you disable email sending for a configuration set using UpdateConfigurationSetSendingEnabled and later re-enable it, the reputation metrics for the configuration set (but not for the entire Amazon SES account) are reset. If email sending for the configuration set has never been disabled and later re-enabled, the value of this attribute is null.
        public let lastFreshStart: Date?
        /// Describes whether or not Amazon SES publishes reputation metrics for the configuration set, such as bounce and complaint rates, to Amazon CloudWatch. If the value is true, reputation metrics are published. If the value is false, reputation metrics are not published. The default value is false.
        public let reputationMetricsEnabled: Bool?
        /// Describes whether email sending is enabled or disabled for the configuration set. If the value is true, then Amazon SES sends emails that use the configuration set. If the value is false, Amazon SES does not send emails that use the configuration set. The default value is true. You can change this setting using UpdateConfigurationSetSendingEnabled.
        public let sendingEnabled: Bool?

        @inlinable
        public init(lastFreshStart: Date? = nil, reputationMetricsEnabled: Bool? = nil, sendingEnabled: Bool? = nil) {
            self.lastFreshStart = lastFreshStart
            self.reputationMetricsEnabled = reputationMetricsEnabled
            self.sendingEnabled = sendingEnabled
        }

        private enum CodingKeys: String, CodingKey {
            case lastFreshStart = "LastFreshStart"
            case reputationMetricsEnabled = "ReputationMetricsEnabled"
            case sendingEnabled = "SendingEnabled"
        }
    }

    public struct RuleDoesNotExistException: AWSErrorShape {
        public let message: String?
        /// Indicates that the named receipt rule does not exist.
        public let name: String?

        @inlinable
        public init(message: String? = nil, name: String? = nil) {
            self.message = message
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case message = "message"
            case name = "Name"
        }
    }

    public struct RuleSetDoesNotExistException: AWSErrorShape {
        public let message: String?
        /// Indicates that the named receipt rule set does not exist.
        public let name: String?

        @inlinable
        public init(message: String? = nil, name: String? = nil) {
            self.message = message
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case message = "message"
            case name = "Name"
        }
    }

    public struct S3Action: AWSEncodableShape & AWSDecodableShape {
        /// The name of the Amazon S3 bucket for incoming email.
        public let bucketName: String
        ///  The ARN of the IAM role to be used by Amazon Simple Email Service while writing to the Amazon S3 bucket, optionally encrypting your mail via the provided customer managed key, and publishing to the Amazon SNS topic. This role should have access to the following APIs:     s3:PutObject, kms:Encrypt and kms:GenerateDataKey for the given Amazon S3 bucket.    kms:GenerateDataKey for the given Amazon Web Services KMS customer managed key.     sns:Publish for the given Amazon SNS topic.    If an IAM role ARN is provided, the role (and only the role) is used to access all the given resources (Amazon S3 bucket, Amazon Web Services KMS customer managed key and Amazon SNS topic). Therefore, setting up individual resource access permissions is not required.
        public let iamRoleArn: String?
        /// The customer managed key that Amazon SES should use to encrypt your emails before saving them to the Amazon S3 bucket. You can use the Amazon Web Services managed key or a customer managed key that you created in Amazon Web Services KMS as follows:   To use the Amazon Web Services managed key, provide an ARN in the form of arn:aws:kms:REGION:ACCOUNT-ID-WITHOUT-HYPHENS:alias/aws/ses. For example, if your Amazon Web Services account ID is 123456789012 and you want to use the Amazon Web Services managed key in the US West (Oregon) Region, the ARN of the Amazon Web Services managed key would be arn:aws:kms:us-west-2:123456789012:alias/aws/ses. If you use the Amazon Web Services managed key, you don't need to perform any extra steps to give Amazon SES permission to use the key.   To use a customer managed key that you created in Amazon Web Services KMS, provide the ARN of the customer managed key and ensure that you add a statement to your key's policy to give Amazon SES permission to use it. For more information about giving permissions, see the Amazon SES Developer Guide.   For more information about key policies, see the Amazon Web Services KMS Developer Guide. If you do not specify an Amazon Web Services KMS key, Amazon SES does not encrypt your emails.  Your mail is encrypted by Amazon SES using the Amazon S3 encryption client before the mail is submitted to Amazon S3 for storage. It is not encrypted using Amazon S3 server-side encryption. This means that you must use the Amazon S3 encryption client to decrypt the email after retrieving it from Amazon S3, as the service has no access to use your Amazon Web Services KMS keys for decryption. This encryption client is currently available with the Amazon Web Services SDK for Java and Amazon Web Services SDK for Ruby only. For more information about client-side encryption using Amazon Web Services KMS managed keys, see the Amazon S3 Developer Guide.
        public let kmsKeyArn: String?
        /// The key prefix of the Amazon S3 bucket. The key prefix is similar to a directory name that enables you to store similar data under the same directory in a bucket.
        public let objectKeyPrefix: String?
        /// The ARN of the Amazon SNS topic to notify when the message is saved to the Amazon S3 bucket. You can find the ARN of a topic by using the ListTopics operation in Amazon SNS. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
        public let topicArn: String?

        @inlinable
        public init(bucketName: String, iamRoleArn: String? = nil, kmsKeyArn: String? = nil, objectKeyPrefix: String? = nil, topicArn: String? = nil) {
            self.bucketName = bucketName
            self.iamRoleArn = iamRoleArn
            self.kmsKeyArn = kmsKeyArn
            self.objectKeyPrefix = objectKeyPrefix
            self.topicArn = topicArn
        }

        public func validate(name: String) throws {
            try self.validate(self.iamRoleArn, name: "iamRoleArn", parent: name, max: 2048)
            try self.validate(self.iamRoleArn, name: "iamRoleArn", parent: name, min: 20)
            try self.validate(self.iamRoleArn, name: "iamRoleArn", parent: name, pattern: "^arn:[\\w-]+:iam::[0-9]+:role(\\u002F)([\\u0021-\\u007E]+\\u002F)?([\\w+=,.@-]+)$")
        }

        private enum CodingKeys: String, CodingKey {
            case bucketName = "BucketName"
            case iamRoleArn = "IamRoleArn"
            case kmsKeyArn = "KmsKeyArn"
            case objectKeyPrefix = "ObjectKeyPrefix"
            case topicArn = "TopicArn"
        }
    }

    public struct SNSAction: AWSEncodableShape & AWSDecodableShape {
        /// The encoding to use for the email within the Amazon SNS notification. UTF-8 is easier to use, but may not preserve all special characters when a message was encoded with a different encoding format. Base64 preserves all special characters. The default value is UTF-8.
        public let encoding: SNSActionEncoding?
        /// The Amazon Resource Name (ARN) of the Amazon SNS topic to notify. You can find the ARN of a topic by using the ListTopics operation in Amazon SNS. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
        public let topicArn: String

        @inlinable
        public init(encoding: SNSActionEncoding? = nil, topicArn: String) {
            self.encoding = encoding
            self.topicArn = topicArn
        }

        private enum CodingKeys: String, CodingKey {
            case encoding = "Encoding"
            case topicArn = "TopicArn"
        }
    }

    public struct SNSDestination: AWSEncodableShape & AWSDecodableShape {
        /// The ARN of the Amazon SNS topic for email sending events. You can find the ARN of a topic by using the ListTopics Amazon SNS operation. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
        public let topicARN: String

        @inlinable
        public init(topicARN: String) {
            self.topicARN = topicARN
        }

        private enum CodingKeys: String, CodingKey {
            case topicARN = "TopicARN"
        }
    }

    public struct SendBounceRequest: AWSEncodableShape {
        /// A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one BouncedRecipientInfo in the list.
        @CustomCoding<StandardArrayCoder<BouncedRecipientInfo>>
        public var bouncedRecipientInfoList: [BouncedRecipientInfo]
        /// The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.
        public let bounceSender: String
        /// This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the address in the "From" header of the bounce. For more information about sending authorization, see the Amazon SES Developer Guide.
        public let bounceSenderArn: String?
        /// Human-readable text for the bounce message to explain the failure. If not specified, the text is auto-generated based on the bounced recipient information.
        public let explanation: String?
        /// Message-related DSN fields. If not specified, Amazon SES chooses the values.
        public let messageDsn: MessageDsn?
        /// The message ID of the message to be bounced.
        public let originalMessageId: String

        @inlinable
        public init(bouncedRecipientInfoList: [BouncedRecipientInfo], bounceSender: String, bounceSenderArn: String? = nil, explanation: String? = nil, messageDsn: MessageDsn? = nil, originalMessageId: String) {
            self.bouncedRecipientInfoList = bouncedRecipientInfoList
            self.bounceSender = bounceSender
            self.bounceSenderArn = bounceSenderArn
            self.explanation = explanation
            self.messageDsn = messageDsn
            self.originalMessageId = originalMessageId
        }

        private enum CodingKeys: String, CodingKey {
            case bouncedRecipientInfoList = "BouncedRecipientInfoList"
            case bounceSender = "BounceSender"
            case bounceSenderArn = "BounceSenderArn"
            case explanation = "Explanation"
            case messageDsn = "MessageDsn"
            case originalMessageId = "OriginalMessageId"
        }
    }

    public struct SendBounceResponse: AWSDecodableShape {
        /// The message ID of the bounce message.
        public let messageId: String?

        @inlinable
        public init(messageId: String? = nil) {
            self.messageId = messageId
        }

        private enum CodingKeys: String, CodingKey {
            case messageId = "MessageId"
        }
    }

    public struct SendBulkTemplatedEmailRequest: AWSEncodableShape {
        /// The name of the configuration set to use when you send an email using SendBulkTemplatedEmail.
        public let configurationSetName: String?
        /// A list of tags, in the form of name/value pairs, to apply to an email that you send to a destination using SendBulkTemplatedEmail.
        @OptionalCustomCoding<StandardArrayCoder<MessageTag>>
        public var defaultTags: [MessageTag]?
        /// A list of replacement values to apply to the template when replacement data is not specified in a Destination object. These values act as a default or fallback option when no other data is available. The template data is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.
        public let defaultTemplateData: String
        /// One or more Destination objects. All of the recipients in a Destination receive the same version of the email. You can specify up to 50 Destination objects within a Destinations array.
        @CustomCoding<StandardArrayCoder<BulkEmailDestination>>
        public var destinations: [BulkEmailDestination]
        /// The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address receives the reply.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var replyToAddresses: [String]?
        /// The email address that bounces and complaints are forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message is returned from the recipient's ISP; this message is forwarded to the email address specified by the ReturnPath parameter. The ReturnPath parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.
        public let returnPath: String?
        /// This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the ReturnPath parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the ReturnPathArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the ReturnPath to be feedback@example.com. For more information about sending authorization, see the Amazon SES Developer Guide.
        public let returnPathArn: String?
        /// The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the Amazon SES Developer Guide. If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the SourceArn parameter. For more information about sending authorization, see the Amazon SES Developer Guide.  Amazon SES does not support the SMTPUTF8 extension, as described in RFC6531. For this reason, the email address string must be 7-bit ASCII. If you want to send to or from email addresses that contain Unicode characters in the domain part of an address, you must encode the domain using Punycode. Punycode is not permitted in the local part of the email address (the part before the @ sign) nor in the "friendly from" name. If you want to use Unicode characters in the "friendly from" name, you must encode the "friendly from" name using MIME encoded-word syntax, as described in Sending raw email using the Amazon SES API. For more information about Punycode, see RFC 3492.
        public let source: String
        /// This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the Source parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send from user@example.com, then you would specify the SourceArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the Source to be user@example.com. For more information about sending authorization, see the Amazon SES Developer Guide.
        public let sourceArn: String?
        /// The template to use when sending this email.
        public let template: String
        /// The ARN of the template to use when sending this email.
        public let templateArn: String?

        @inlinable
        public init(configurationSetName: String? = nil, defaultTags: [MessageTag]? = nil, defaultTemplateData: String, destinations: [BulkEmailDestination], replyToAddresses: [String]? = nil, returnPath: String? = nil, returnPathArn: String? = nil, source: String, sourceArn: String? = nil, template: String, templateArn: String? = nil) {
            self.configurationSetName = configurationSetName
            self.defaultTags = defaultTags
            self.defaultTemplateData = defaultTemplateData
            self.destinations = destinations
            self.replyToAddresses = replyToAddresses
            self.returnPath = returnPath
            self.returnPathArn = returnPathArn
            self.source = source
            self.sourceArn = sourceArn
            self.template = template
            self.templateArn = templateArn
        }

        public func validate(name: String) throws {
            try self.validate(self.defaultTemplateData, name: "defaultTemplateData", parent: name, max: 262144)
            try self.destinations.forEach {
                try $0.validate(name: "\(name).destinations[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case defaultTags = "DefaultTags"
            case defaultTemplateData = "DefaultTemplateData"
            case destinations = "Destinations"
            case replyToAddresses = "ReplyToAddresses"
            case returnPath = "ReturnPath"
            case returnPathArn = "ReturnPathArn"
            case source = "Source"
            case sourceArn = "SourceArn"
            case template = "Template"
            case templateArn = "TemplateArn"
        }
    }

    public struct SendBulkTemplatedEmailResponse: AWSDecodableShape {
        /// One object per intended recipient. Check each response object and retry any messages with a failure status. (Note that order of responses will be respective to order of destinations in the request.)Receipt rules enable you to specify which actions
        @CustomCoding<StandardArrayCoder<BulkEmailDestinationStatus>>
        public var status: [BulkEmailDestinationStatus]

        @inlinable
        public init(status: [BulkEmailDestinationStatus]) {
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case status = "Status"
        }
    }

    public struct SendCustomVerificationEmailRequest: AWSEncodableShape {
        /// Name of a configuration set to use when sending the verification email.
        public let configurationSetName: String?
        /// The email address to verify.
        public let emailAddress: String
        /// The name of the custom verification email template to use when sending the verification email.
        public let templateName: String

        @inlinable
        public init(configurationSetName: String? = nil, emailAddress: String, templateName: String) {
            self.configurationSetName = configurationSetName
            self.emailAddress = emailAddress
            self.templateName = templateName
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case emailAddress = "EmailAddress"
            case templateName = "TemplateName"
        }
    }

    public struct SendCustomVerificationEmailResponse: AWSDecodableShape {
        /// The unique message identifier returned from the SendCustomVerificationEmail operation.
        public let messageId: String?

        @inlinable
        public init(messageId: String? = nil) {
            self.messageId = messageId
        }

        private enum CodingKeys: String, CodingKey {
            case messageId = "MessageId"
        }
    }

    public struct SendDataPoint: AWSDecodableShape {
        /// Number of emails that have bounced.
        public let bounces: Int64?
        /// Number of unwanted emails that were rejected by recipients.
        public let complaints: Int64?
        /// Number of emails that have been sent.
        public let deliveryAttempts: Int64?
        /// Number of emails rejected by Amazon SES.
        public let rejects: Int64?
        /// Time of the data point.
        public let timestamp: Date?

        @inlinable
        public init(bounces: Int64? = nil, complaints: Int64? = nil, deliveryAttempts: Int64? = nil, rejects: Int64? = nil, timestamp: Date? = nil) {
            self.bounces = bounces
            self.complaints = complaints
            self.deliveryAttempts = deliveryAttempts
            self.rejects = rejects
            self.timestamp = timestamp
        }

        private enum CodingKeys: String, CodingKey {
            case bounces = "Bounces"
            case complaints = "Complaints"
            case deliveryAttempts = "DeliveryAttempts"
            case rejects = "Rejects"
            case timestamp = "Timestamp"
        }
    }

    public struct SendEmailRequest: AWSEncodableShape {
        /// The name of the configuration set to use when you send an email using SendEmail.
        public let configurationSetName: String?
        /// The destination for this email, composed of To:, CC:, and BCC: fields.
        public let destination: Destination
        /// The message to be sent.
        public let message: Message
        /// The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address receives the reply.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var replyToAddresses: [String]?
        /// The email address that bounces and complaints are forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message is returned from the recipient's ISP; this message is forwarded to the email address specified by the ReturnPath parameter. The ReturnPath parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.
        public let returnPath: String?
        /// This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the ReturnPath parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the ReturnPathArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the ReturnPath to be feedback@example.com. For more information about sending authorization, see the Amazon SES Developer Guide.
        public let returnPathArn: String?
        /// The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the Amazon SES Developer Guide. If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the SourceArn parameter. For more information about sending authorization, see the Amazon SES Developer Guide.  Amazon SES does not support the SMTPUTF8 extension, as described in RFC6531. For this reason, the email address string must be 7-bit ASCII. If you want to send to or from email addresses that contain Unicode characters in the domain part of an address, you must encode the domain using Punycode. Punycode is not permitted in the local part of the email address (the part before the @ sign) nor in the "friendly from" name. If you want to use Unicode characters in the "friendly from" name, you must encode the "friendly from" name using MIME encoded-word syntax, as described in Sending raw email using the Amazon SES API. For more information about Punycode, see RFC 3492.
        public let source: String
        /// This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the Source parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send from user@example.com, then you would specify the SourceArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the Source to be user@example.com. For more information about sending authorization, see the Amazon SES Developer Guide.
        public let sourceArn: String?
        /// A list of tags, in the form of name/value pairs, to apply to an email that you send using SendEmail. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.
        @OptionalCustomCoding<StandardArrayCoder<MessageTag>>
        public var tags: [MessageTag]?

        @inlinable
        public init(configurationSetName: String? = nil, destination: Destination, message: Message, replyToAddresses: [String]? = nil, returnPath: String? = nil, returnPathArn: String? = nil, source: String, sourceArn: String? = nil, tags: [MessageTag]? = nil) {
            self.configurationSetName = configurationSetName
            self.destination = destination
            self.message = message
            self.replyToAddresses = replyToAddresses
            self.returnPath = returnPath
            self.returnPathArn = returnPathArn
            self.source = source
            self.sourceArn = sourceArn
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case destination = "Destination"
            case message = "Message"
            case replyToAddresses = "ReplyToAddresses"
            case returnPath = "ReturnPath"
            case returnPathArn = "ReturnPathArn"
            case source = "Source"
            case sourceArn = "SourceArn"
            case tags = "Tags"
        }
    }

    public struct SendEmailResponse: AWSDecodableShape {
        /// The unique message identifier returned from the SendEmail action.
        public let messageId: String

        @inlinable
        public init(messageId: String) {
            self.messageId = messageId
        }

        private enum CodingKeys: String, CodingKey {
            case messageId = "MessageId"
        }
    }

    public struct SendRawEmailRequest: AWSEncodableShape {
        /// The name of the configuration set to use when you send an email using SendRawEmail.
        public let configurationSetName: String?
        /// A list of destinations for the message, consisting of To:, CC:, and BCC: addresses.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var destinations: [String]?
        /// This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to specify a particular "From" address in the header of the raw email. Instead of using this parameter, you can use the X-header X-SES-FROM-ARN in the raw message of the email. If you use both the FromArn parameter and the corresponding X-header, Amazon SES uses the value of the FromArn parameter.  For information about when to use this parameter, see the description of SendRawEmail in this guide, or see the Amazon SES Developer Guide.
        public let fromArn: String?
        /// The raw email message itself. The message has to meet the following criteria:   The message has to contain a header and a body, separated by a blank line.   All of the required header fields must be present in the message.   Each part of a multipart MIME message must be formatted properly.   Attachments must be of a content type that Amazon SES supports. For a list on unsupported content types, see Unsupported Attachment Types in the Amazon SES Developer Guide.   The entire message must be base64-encoded.   If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, we highly recommend that you encode that content. For more information, see Sending Raw Email in the Amazon SES Developer Guide.   Per RFC 5321, the maximum length of each line of text, including the , must not exceed 1,000 characters.
        public let rawMessage: RawMessage
        /// This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the ReturnPath parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the ReturnPathArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the ReturnPath to be feedback@example.com. Instead of using this parameter, you can use the X-header X-SES-RETURN-PATH-ARN in the raw message of the email. If you use both the ReturnPathArn parameter and the corresponding X-header, Amazon SES uses the value of the ReturnPathArn parameter.  For information about when to use this parameter, see the description of SendRawEmail in this guide, or see the Amazon SES Developer Guide.
        public let returnPathArn: String?
        /// The identity's email address. If you do not provide a value for this parameter, you must specify a "From" address in the raw text of the message. (You can also specify both.)  Amazon SES does not support the SMTPUTF8 extension, as described inRFC6531. For this reason, the email address string must be 7-bit ASCII. If you want to send to or from email addresses that contain Unicode characters in the domain part of an address, you must encode the domain using Punycode. Punycode is not permitted in the local part of the email address (the part before the @ sign) nor in the "friendly from" name. If you want to use Unicode characters in the "friendly from" name, you must encode the "friendly from" name using MIME encoded-word syntax, as described in Sending raw email using the Amazon SES API. For more information about Punycode, see RFC 3492.  If you specify the Source parameter and have feedback forwarding enabled, then bounces and complaints are sent to this email address. This takes precedence over any Return-Path header that you might include in the raw text of the message.
        public let source: String?
        /// This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the Source parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send from user@example.com, then you would specify the SourceArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the Source to be user@example.com. Instead of using this parameter, you can use the X-header X-SES-SOURCE-ARN in the raw message of the email. If you use both the SourceArn parameter and the corresponding X-header, Amazon SES uses the value of the SourceArn parameter.  For information about when to use this parameter, see the description of SendRawEmail in this guide, or see the Amazon SES Developer Guide.
        public let sourceArn: String?
        /// A list of tags, in the form of name/value pairs, to apply to an email that you send using SendRawEmail. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.
        @OptionalCustomCoding<StandardArrayCoder<MessageTag>>
        public var tags: [MessageTag]?

        @inlinable
        public init(configurationSetName: String? = nil, destinations: [String]? = nil, fromArn: String? = nil, rawMessage: RawMessage, returnPathArn: String? = nil, source: String? = nil, sourceArn: String? = nil, tags: [MessageTag]? = nil) {
            self.configurationSetName = configurationSetName
            self.destinations = destinations
            self.fromArn = fromArn
            self.rawMessage = rawMessage
            self.returnPathArn = returnPathArn
            self.source = source
            self.sourceArn = sourceArn
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case destinations = "Destinations"
            case fromArn = "FromArn"
            case rawMessage = "RawMessage"
            case returnPathArn = "ReturnPathArn"
            case source = "Source"
            case sourceArn = "SourceArn"
            case tags = "Tags"
        }
    }

    public struct SendRawEmailResponse: AWSDecodableShape {
        /// The unique message identifier returned from the SendRawEmail action.
        public let messageId: String

        @inlinable
        public init(messageId: String) {
            self.messageId = messageId
        }

        private enum CodingKeys: String, CodingKey {
            case messageId = "MessageId"
        }
    }

    public struct SendTemplatedEmailRequest: AWSEncodableShape {
        /// The name of the configuration set to use when you send an email using SendTemplatedEmail.
        public let configurationSetName: String?
        /// The destination for this email, composed of To:, CC:, and BCC: fields. A Destination can include up to 50 recipients across these three fields.
        public let destination: Destination
        /// The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address receives the reply.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var replyToAddresses: [String]?
        /// The email address that bounces and complaints are forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message is returned from the recipient's ISP; this message is forwarded to the email address specified by the ReturnPath parameter. The ReturnPath parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.
        public let returnPath: String?
        /// This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the ReturnPath parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the ReturnPathArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the ReturnPath to be feedback@example.com. For more information about sending authorization, see the Amazon SES Developer Guide.
        public let returnPathArn: String?
        /// The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the Amazon SES Developer Guide. If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the SourceArn parameter. For more information about sending authorization, see the Amazon SES Developer Guide.  Amazon SES does not support the SMTPUTF8 extension, as described in RFC6531. for this reason, The email address string must be 7-bit ASCII. If you want to send to or from email addresses that contain Unicode characters in the domain part of an address, you must encode the domain using Punycode. Punycode is not permitted in the local part of the email address (the part before the @ sign) nor in the "friendly from" name. If you want to use Unicode characters in the "friendly from" name, you must encode the "friendly from" name using MIME encoded-word syntax, as described in Sending raw email using the Amazon SES API. For more information about Punycode, see RFC 3492.
        public let source: String
        /// This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the Source parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send from user@example.com, then you would specify the SourceArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the Source to be user@example.com. For more information about sending authorization, see the Amazon SES Developer Guide.
        public let sourceArn: String?
        /// A list of tags, in the form of name/value pairs, to apply to an email that you send using SendTemplatedEmail. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.
        @OptionalCustomCoding<StandardArrayCoder<MessageTag>>
        public var tags: [MessageTag]?
        /// The template to use when sending this email.
        public let template: String
        /// The ARN of the template to use when sending this email.
        public let templateArn: String?
        /// A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.
        public let templateData: String

        @inlinable
        public init(configurationSetName: String? = nil, destination: Destination, replyToAddresses: [String]? = nil, returnPath: String? = nil, returnPathArn: String? = nil, source: String, sourceArn: String? = nil, tags: [MessageTag]? = nil, template: String, templateArn: String? = nil, templateData: String) {
            self.configurationSetName = configurationSetName
            self.destination = destination
            self.replyToAddresses = replyToAddresses
            self.returnPath = returnPath
            self.returnPathArn = returnPathArn
            self.source = source
            self.sourceArn = sourceArn
            self.tags = tags
            self.template = template
            self.templateArn = templateArn
            self.templateData = templateData
        }

        public func validate(name: String) throws {
            try self.validate(self.templateData, name: "templateData", parent: name, max: 262144)
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case destination = "Destination"
            case replyToAddresses = "ReplyToAddresses"
            case returnPath = "ReturnPath"
            case returnPathArn = "ReturnPathArn"
            case source = "Source"
            case sourceArn = "SourceArn"
            case tags = "Tags"
            case template = "Template"
            case templateArn = "TemplateArn"
            case templateData = "TemplateData"
        }
    }

    public struct SendTemplatedEmailResponse: AWSDecodableShape {
        /// The unique message identifier returned from the SendTemplatedEmail action.
        public let messageId: String

        @inlinable
        public init(messageId: String) {
            self.messageId = messageId
        }

        private enum CodingKeys: String, CodingKey {
            case messageId = "MessageId"
        }
    }

    public struct SetActiveReceiptRuleSetRequest: AWSEncodableShape {
        /// The name of the receipt rule set to make active. Setting this value to null disables all email receiving.
        public let ruleSetName: String?

        @inlinable
        public init(ruleSetName: String? = nil) {
            self.ruleSetName = ruleSetName
        }

        private enum CodingKeys: String, CodingKey {
            case ruleSetName = "RuleSetName"
        }
    }

    public struct SetActiveReceiptRuleSetResponse: AWSDecodableShape {
        public init() {}
    }

    public struct SetIdentityDkimEnabledRequest: AWSEncodableShape {
        /// Sets whether DKIM signing is enabled for an identity. Set to true to enable DKIM signing for this identity; false to disable it.
        public let dkimEnabled: Bool
        /// The identity for which DKIM signing should be enabled or disabled.
        public let identity: String

        @inlinable
        public init(dkimEnabled: Bool = false, identity: String) {
            self.dkimEnabled = dkimEnabled
            self.identity = identity
        }

        private enum CodingKeys: String, CodingKey {
            case dkimEnabled = "DkimEnabled"
            case identity = "Identity"
        }
    }

    public struct SetIdentityDkimEnabledResponse: AWSDecodableShape {
        public init() {}
    }

    public struct SetIdentityFeedbackForwardingEnabledRequest: AWSEncodableShape {
        /// Sets whether Amazon SES forwards bounce and complaint notifications as email. true specifies that Amazon SES forwards bounce and complaint notifications as email, in addition to any Amazon SNS topic publishing otherwise specified. false specifies that Amazon SES publishes bounce and complaint notifications only through Amazon SNS. This value can only be set to false when Amazon SNS topics are set for both Bounce and Complaint notification types.
        public let forwardingEnabled: Bool
        /// The identity for which to set bounce and complaint notification forwarding. Examples: user@example.com, example.com.
        public let identity: String

        @inlinable
        public init(forwardingEnabled: Bool = false, identity: String) {
            self.forwardingEnabled = forwardingEnabled
            self.identity = identity
        }

        private enum CodingKeys: String, CodingKey {
            case forwardingEnabled = "ForwardingEnabled"
            case identity = "Identity"
        }
    }

    public struct SetIdentityFeedbackForwardingEnabledResponse: AWSDecodableShape {
        public init() {}
    }

    public struct SetIdentityHeadersInNotificationsEnabledRequest: AWSEncodableShape {
        /// Sets whether Amazon SES includes the original email headers in Amazon SNS notifications of the specified notification type. A value of true specifies that Amazon SES includes headers in notifications, and a value of false specifies that Amazon SES does not include headers in notifications. This value can only be set when NotificationType is already set to use a particular Amazon SNS topic.
        public let enabled: Bool
        /// The identity for which to enable or disable headers in notifications. Examples: user@example.com, example.com.
        public let identity: String
        /// The notification type for which to enable or disable headers in notifications.
        public let notificationType: NotificationType

        @inlinable
        public init(enabled: Bool = false, identity: String, notificationType: NotificationType) {
            self.enabled = enabled
            self.identity = identity
            self.notificationType = notificationType
        }

        private enum CodingKeys: String, CodingKey {
            case enabled = "Enabled"
            case identity = "Identity"
            case notificationType = "NotificationType"
        }
    }

    public struct SetIdentityHeadersInNotificationsEnabledResponse: AWSDecodableShape {
        public init() {}
    }

    public struct SetIdentityMailFromDomainRequest: AWSEncodableShape {
        /// The action for Amazon SES to take if it cannot successfully read the required MX record when you send an email. If you choose UseDefaultValue, Amazon SES uses amazonses.com (or a subdomain of that) as the MAIL FROM domain. If you choose RejectMessage, Amazon SES returns a MailFromDomainNotVerified error and not send the email. The action specified in BehaviorOnMXFailure is taken when the custom MAIL FROM domain setup is in the Pending, Failed, and TemporaryFailure states.
        public let behaviorOnMXFailure: BehaviorOnMXFailure?
        /// The verified identity.
        public let identity: String
        /// The custom MAIL FROM domain for the verified identity to use. The MAIL FROM domain must 1) be a subdomain of the verified identity, 2) not be used in a "From" address if the MAIL FROM domain is the destination of email feedback forwarding (for more information, see the Amazon SES Developer Guide), and 3) not be used to receive emails. A value of null disables the custom MAIL FROM setting for the identity.
        public let mailFromDomain: String?

        @inlinable
        public init(behaviorOnMXFailure: BehaviorOnMXFailure? = nil, identity: String, mailFromDomain: String? = nil) {
            self.behaviorOnMXFailure = behaviorOnMXFailure
            self.identity = identity
            self.mailFromDomain = mailFromDomain
        }

        private enum CodingKeys: String, CodingKey {
            case behaviorOnMXFailure = "BehaviorOnMXFailure"
            case identity = "Identity"
            case mailFromDomain = "MailFromDomain"
        }
    }

    public struct SetIdentityMailFromDomainResponse: AWSDecodableShape {
        public init() {}
    }

    public struct SetIdentityNotificationTopicRequest: AWSEncodableShape {
        /// The identity (email address or domain) for the Amazon SNS topic.  You can only specify a verified identity for this parameter.  You can specify an identity by using its name or by using its Amazon Resource Name (ARN). The following examples are all valid identities: sender@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.
        public let identity: String
        /// The type of notifications that are published to the specified Amazon SNS topic.
        public let notificationType: NotificationType
        /// The Amazon Resource Name (ARN) of the Amazon SNS topic. If the parameter is omitted from the request or a null value is passed, SnsTopic is cleared and publishing is disabled.
        public let snsTopic: String?

        @inlinable
        public init(identity: String, notificationType: NotificationType, snsTopic: String? = nil) {
            self.identity = identity
            self.notificationType = notificationType
            self.snsTopic = snsTopic
        }

        private enum CodingKeys: String, CodingKey {
            case identity = "Identity"
            case notificationType = "NotificationType"
            case snsTopic = "SnsTopic"
        }
    }

    public struct SetIdentityNotificationTopicResponse: AWSDecodableShape {
        public init() {}
    }

    public struct SetReceiptRulePositionRequest: AWSEncodableShape {
        /// The name of the receipt rule after which to place the specified receipt rule.
        public let after: String?
        /// The name of the receipt rule to reposition.
        public let ruleName: String
        /// The name of the receipt rule set that contains the receipt rule to reposition.
        public let ruleSetName: String

        @inlinable
        public init(after: String? = nil, ruleName: String, ruleSetName: String) {
            self.after = after
            self.ruleName = ruleName
            self.ruleSetName = ruleSetName
        }

        private enum CodingKeys: String, CodingKey {
            case after = "After"
            case ruleName = "RuleName"
            case ruleSetName = "RuleSetName"
        }
    }

    public struct SetReceiptRulePositionResponse: AWSDecodableShape {
        public init() {}
    }

    public struct StopAction: AWSEncodableShape & AWSDecodableShape {
        /// The scope of the StopAction. The only acceptable value is RuleSet.
        public let scope: StopScope
        /// The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the stop action is taken. You can find the ARN of a topic by using the ListTopics Amazon SNS operation. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
        public let topicArn: String?

        @inlinable
        public init(scope: StopScope, topicArn: String? = nil) {
            self.scope = scope
            self.topicArn = topicArn
        }

        private enum CodingKeys: String, CodingKey {
            case scope = "Scope"
            case topicArn = "TopicArn"
        }
    }

    public struct Template: AWSEncodableShape & AWSDecodableShape {
        /// The HTML body of the email.
        public let htmlPart: String?
        /// The subject line of the email.
        public let subjectPart: String?
        /// The name of the template. You use this name when you send email using the SendTemplatedEmail or SendBulkTemplatedEmail operations.
        public let templateName: String
        /// The email body that is visible to recipients whose email clients do not display HTML content.
        public let textPart: String?

        @inlinable
        public init(htmlPart: String? = nil, subjectPart: String? = nil, templateName: String, textPart: String? = nil) {
            self.htmlPart = htmlPart
            self.subjectPart = subjectPart
            self.templateName = templateName
            self.textPart = textPart
        }

        private enum CodingKeys: String, CodingKey {
            case htmlPart = "HtmlPart"
            case subjectPart = "SubjectPart"
            case templateName = "TemplateName"
            case textPart = "TextPart"
        }
    }

    public struct TemplateDoesNotExistException: AWSErrorShape {
        public let message: String?
        public let templateName: String?

        @inlinable
        public init(message: String? = nil, templateName: String? = nil) {
            self.message = message
            self.templateName = templateName
        }

        private enum CodingKeys: String, CodingKey {
            case message = "message"
            case templateName = "TemplateName"
        }
    }

    public struct TemplateMetadata: AWSDecodableShape {
        /// The time and date the template was created.
        public let createdTimestamp: Date?
        /// The name of the template.
        public let name: String?

        @inlinable
        public init(createdTimestamp: Date? = nil, name: String? = nil) {
            self.createdTimestamp = createdTimestamp
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case createdTimestamp = "CreatedTimestamp"
            case name = "Name"
        }
    }

    public struct TestRenderTemplateRequest: AWSEncodableShape {
        /// A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.
        public let templateData: String
        /// The name of the template to render.
        public let templateName: String

        @inlinable
        public init(templateData: String, templateName: String) {
            self.templateData = templateData
            self.templateName = templateName
        }

        public func validate(name: String) throws {
            try self.validate(self.templateData, name: "templateData", parent: name, max: 262144)
        }

        private enum CodingKeys: String, CodingKey {
            case templateData = "TemplateData"
            case templateName = "TemplateName"
        }
    }

    public struct TestRenderTemplateResponse: AWSDecodableShape {
        /// The complete MIME message rendered by applying the data in the TemplateData parameter to the template specified in the TemplateName parameter.
        public let renderedTemplate: String?

        @inlinable
        public init(renderedTemplate: String? = nil) {
            self.renderedTemplate = renderedTemplate
        }

        private enum CodingKeys: String, CodingKey {
            case renderedTemplate = "RenderedTemplate"
        }
    }

    public struct TrackingOptions: AWSEncodableShape & AWSDecodableShape {
        /// The custom subdomain that is used to redirect email recipients to the Amazon SES event tracking domain.
        public let customRedirectDomain: String?

        @inlinable
        public init(customRedirectDomain: String? = nil) {
            self.customRedirectDomain = customRedirectDomain
        }

        private enum CodingKeys: String, CodingKey {
            case customRedirectDomain = "CustomRedirectDomain"
        }
    }

    public struct TrackingOptionsAlreadyExistsException: AWSErrorShape {
        /// Indicates that a TrackingOptions object already exists in the specified configuration set.
        public let configurationSetName: String?
        public let message: String?

        @inlinable
        public init(configurationSetName: String? = nil, message: String? = nil) {
            self.configurationSetName = configurationSetName
            self.message = message
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case message = "message"
        }
    }

    public struct TrackingOptionsDoesNotExistException: AWSErrorShape {
        /// Indicates that a TrackingOptions object does not exist in the specified configuration set.
        public let configurationSetName: String?
        public let message: String?

        @inlinable
        public init(configurationSetName: String? = nil, message: String? = nil) {
            self.configurationSetName = configurationSetName
            self.message = message
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case message = "message"
        }
    }

    public struct UpdateAccountSendingEnabledRequest: AWSEncodableShape {
        /// Describes whether email sending is enabled or disabled for your Amazon SES account in the current Amazon Web Services Region.
        public let enabled: Bool?

        @inlinable
        public init(enabled: Bool? = nil) {
            self.enabled = enabled
        }

        private enum CodingKeys: String, CodingKey {
            case enabled = "Enabled"
        }
    }

    public struct UpdateConfigurationSetEventDestinationRequest: AWSEncodableShape {
        /// The name of the configuration set that contains the event destination.
        public let configurationSetName: String
        /// The event destination object.
        public let eventDestination: EventDestination

        @inlinable
        public init(configurationSetName: String, eventDestination: EventDestination) {
            self.configurationSetName = configurationSetName
            self.eventDestination = eventDestination
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case eventDestination = "EventDestination"
        }
    }

    public struct UpdateConfigurationSetEventDestinationResponse: AWSDecodableShape {
        public init() {}
    }

    public struct UpdateConfigurationSetReputationMetricsEnabledRequest: AWSEncodableShape {
        /// The name of the configuration set to update.
        public let configurationSetName: String
        /// Describes whether or not Amazon SES publishes reputation metrics for the configuration set, such as bounce and complaint rates, to Amazon CloudWatch.
        public let enabled: Bool

        @inlinable
        public init(configurationSetName: String, enabled: Bool = false) {
            self.configurationSetName = configurationSetName
            self.enabled = enabled
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case enabled = "Enabled"
        }
    }

    public struct UpdateConfigurationSetSendingEnabledRequest: AWSEncodableShape {
        /// The name of the configuration set to update.
        public let configurationSetName: String
        /// Describes whether email sending is enabled or disabled for the configuration set.
        public let enabled: Bool

        @inlinable
        public init(configurationSetName: String, enabled: Bool = false) {
            self.configurationSetName = configurationSetName
            self.enabled = enabled
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case enabled = "Enabled"
        }
    }

    public struct UpdateConfigurationSetTrackingOptionsRequest: AWSEncodableShape {
        /// The name of the configuration set.
        public let configurationSetName: String
        public let trackingOptions: TrackingOptions

        @inlinable
        public init(configurationSetName: String, trackingOptions: TrackingOptions) {
            self.configurationSetName = configurationSetName
            self.trackingOptions = trackingOptions
        }

        private enum CodingKeys: String, CodingKey {
            case configurationSetName = "ConfigurationSetName"
            case trackingOptions = "TrackingOptions"
        }
    }

    public struct UpdateConfigurationSetTrackingOptionsResponse: AWSDecodableShape {
        public init() {}
    }

    public struct UpdateCustomVerificationEmailTemplateRequest: AWSEncodableShape {
        /// The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.
        public let failureRedirectionURL: String?
        /// The email address that the custom verification email is sent from.
        public let fromEmailAddress: String?
        /// The URL that the recipient of the verification email is sent to if his or her address is successfully verified.
        public let successRedirectionURL: String?
        /// The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see Custom Verification Email Frequently Asked Questions in the Amazon SES Developer Guide.
        public let templateContent: String?
        /// The name of the custom verification email template to update.
        public let templateName: String
        /// The subject line of the custom verification email.
        public let templateSubject: String?

        @inlinable
        public init(failureRedirectionURL: String? = nil, fromEmailAddress: String? = nil, successRedirectionURL: String? = nil, templateContent: String? = nil, templateName: String, templateSubject: String? = nil) {
            self.failureRedirectionURL = failureRedirectionURL
            self.fromEmailAddress = fromEmailAddress
            self.successRedirectionURL = successRedirectionURL
            self.templateContent = templateContent
            self.templateName = templateName
            self.templateSubject = templateSubject
        }

        private enum CodingKeys: String, CodingKey {
            case failureRedirectionURL = "FailureRedirectionURL"
            case fromEmailAddress = "FromEmailAddress"
            case successRedirectionURL = "SuccessRedirectionURL"
            case templateContent = "TemplateContent"
            case templateName = "TemplateName"
            case templateSubject = "TemplateSubject"
        }
    }

    public struct UpdateReceiptRuleRequest: AWSEncodableShape {
        /// A data structure that contains the updated receipt rule information.
        public let rule: ReceiptRule
        /// The name of the receipt rule set that the receipt rule belongs to.
        public let ruleSetName: String

        @inlinable
        public init(rule: ReceiptRule, ruleSetName: String) {
            self.rule = rule
            self.ruleSetName = ruleSetName
        }

        public func validate(name: String) throws {
            try self.rule.validate(name: "\(name).rule")
        }

        private enum CodingKeys: String, CodingKey {
            case rule = "Rule"
            case ruleSetName = "RuleSetName"
        }
    }

    public struct UpdateReceiptRuleResponse: AWSDecodableShape {
        public init() {}
    }

    public struct UpdateTemplateRequest: AWSEncodableShape {
        public let template: Template

        @inlinable
        public init(template: Template) {
            self.template = template
        }

        private enum CodingKeys: String, CodingKey {
            case template = "Template"
        }
    }

    public struct UpdateTemplateResponse: AWSDecodableShape {
        public init() {}
    }

    public struct VerifyDomainDkimRequest: AWSEncodableShape {
        /// The name of the domain to be verified for Easy DKIM signing.
        public let domain: String

        @inlinable
        public init(domain: String) {
            self.domain = domain
        }

        private enum CodingKeys: String, CodingKey {
            case domain = "Domain"
        }
    }

    public struct VerifyDomainDkimResponse: AWSDecodableShape {
        /// A set of character strings that represent the domain's identity. If the identity is an email address, the tokens represent the domain of that address. Using these tokens, you need to create DNS CNAME records that point to DKIM public keys that are hosted by Amazon SES. Amazon Web Services eventually detects that you've updated your DNS records. This detection process might take up to 72 hours. After successful detection, Amazon SES is able to DKIM-sign email originating from that domain. (This only applies to domain identities, not email address identities.) For more information about creating DNS records using DKIM tokens, see the Amazon SES Developer Guide.
        @CustomCoding<StandardArrayCoder<String>>
        public var dkimTokens: [String]

        @inlinable
        public init(dkimTokens: [String]) {
            self.dkimTokens = dkimTokens
        }

        private enum CodingKeys: String, CodingKey {
            case dkimTokens = "DkimTokens"
        }
    }

    public struct VerifyDomainIdentityRequest: AWSEncodableShape {
        /// The domain to be verified.
        public let domain: String

        @inlinable
        public init(domain: String) {
            self.domain = domain
        }

        private enum CodingKeys: String, CodingKey {
            case domain = "Domain"
        }
    }

    public struct VerifyDomainIdentityResponse: AWSDecodableShape {
        /// A TXT record that you must place in the DNS settings of the domain to complete domain verification with Amazon SES. As Amazon SES searches for the TXT record, the domain's verification status is "Pending". When Amazon SES detects the record, the domain's verification status changes to "Success". If Amazon SES is unable to detect the record within 72 hours, the domain's verification status changes to "Failed." In that case, to verify the domain, you must restart the verification process from the beginning. The domain's verification status also changes to "Success" when it is DKIM verified.
        public let verificationToken: String

        @inlinable
        public init(verificationToken: String) {
            self.verificationToken = verificationToken
        }

        private enum CodingKeys: String, CodingKey {
            case verificationToken = "VerificationToken"
        }
    }

    public struct VerifyEmailAddressRequest: AWSEncodableShape {
        /// The email address to be verified.
        public let emailAddress: String

        @inlinable
        public init(emailAddress: String) {
            self.emailAddress = emailAddress
        }

        private enum CodingKeys: String, CodingKey {
            case emailAddress = "EmailAddress"
        }
    }

    public struct VerifyEmailIdentityRequest: AWSEncodableShape {
        /// The email address to be verified.
        public let emailAddress: String

        @inlinable
        public init(emailAddress: String) {
            self.emailAddress = emailAddress
        }

        private enum CodingKeys: String, CodingKey {
            case emailAddress = "EmailAddress"
        }
    }

    public struct VerifyEmailIdentityResponse: AWSDecodableShape {
        public init() {}
    }

    public struct WorkmailAction: AWSEncodableShape & AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the Amazon WorkMail organization. Amazon WorkMail ARNs use the following format:  arn:aws:workmail:::organization/  You can find the ID of your organization by using the ListOrganizations operation in Amazon WorkMail. Amazon WorkMail organization IDs begin with "m-", followed by a string of alphanumeric characters. For information about Amazon WorkMail organizations, see the Amazon WorkMail Administrator Guide.
        public let organizationArn: String
        /// The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the WorkMail action is called. You can find the ARN of a topic by using the ListTopics operation in Amazon SNS. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
        public let topicArn: String?

        @inlinable
        public init(organizationArn: String, topicArn: String? = nil) {
            self.organizationArn = organizationArn
            self.topicArn = topicArn
        }

        private enum CodingKeys: String, CodingKey {
            case organizationArn = "OrganizationArn"
            case topicArn = "TopicArn"
        }
    }
}

// MARK: - Errors

/// Error enum for SES
public struct SESErrorType: AWSErrorType {
    enum Code: String {
        case accountSendingPausedException = "AccountSendingPausedException"
        case alreadyExistsException = "AlreadyExists"
        case cannotDeleteException = "CannotDelete"
        case configurationSetAlreadyExistsException = "ConfigurationSetAlreadyExists"
        case configurationSetDoesNotExistException = "ConfigurationSetDoesNotExist"
        case configurationSetSendingPausedException = "ConfigurationSetSendingPausedException"
        case customVerificationEmailInvalidContentException = "CustomVerificationEmailInvalidContent"
        case customVerificationEmailTemplateAlreadyExistsException = "CustomVerificationEmailTemplateAlreadyExists"
        case customVerificationEmailTemplateDoesNotExistException = "CustomVerificationEmailTemplateDoesNotExist"
        case eventDestinationAlreadyExistsException = "EventDestinationAlreadyExists"
        case eventDestinationDoesNotExistException = "EventDestinationDoesNotExist"
        case fromEmailAddressNotVerifiedException = "FromEmailAddressNotVerified"
        case invalidCloudWatchDestinationException = "InvalidCloudWatchDestination"
        case invalidConfigurationSetException = "InvalidConfigurationSet"
        case invalidDeliveryOptionsException = "InvalidDeliveryOptions"
        case invalidFirehoseDestinationException = "InvalidFirehoseDestination"
        case invalidLambdaFunctionException = "InvalidLambdaFunction"
        case invalidPolicyException = "InvalidPolicy"
        case invalidRenderingParameterException = "InvalidRenderingParameter"
        case invalidS3ConfigurationException = "InvalidS3Configuration"
        case invalidSNSDestinationException = "InvalidSNSDestination"
        case invalidSnsTopicException = "InvalidSnsTopic"
        case invalidTemplateException = "InvalidTemplate"
        case invalidTrackingOptionsException = "InvalidTrackingOptions"
        case limitExceededException = "LimitExceeded"
        case mailFromDomainNotVerifiedException = "MailFromDomainNotVerifiedException"
        case messageRejected = "MessageRejected"
        case missingRenderingAttributeException = "MissingRenderingAttribute"
        case productionAccessNotGrantedException = "ProductionAccessNotGranted"
        case ruleDoesNotExistException = "RuleDoesNotExist"
        case ruleSetDoesNotExistException = "RuleSetDoesNotExist"
        case templateDoesNotExistException = "TemplateDoesNotExist"
        case trackingOptionsAlreadyExistsException = "TrackingOptionsAlreadyExistsException"
        case trackingOptionsDoesNotExistException = "TrackingOptionsDoesNotExistException"
    }

    private let error: Code
    public let context: AWSErrorContext?

    /// initialize SES
    public init?(errorCode: String, context: AWSErrorContext) {
        guard let error = Code(rawValue: errorCode) else { return nil }
        self.error = error
        self.context = context
    }

    internal init(_ error: Code) {
        self.error = error
        self.context = nil
    }

    /// return error code string
    public var errorCode: String { self.error.rawValue }

    /// Indicates that email sending is disabled for your entire Amazon SES account. You can enable or disable email sending for your Amazon SES account using UpdateAccountSendingEnabled.
    public static var accountSendingPausedException: Self { .init(.accountSendingPausedException) }
    /// Indicates that a resource could not be created because of a naming conflict.
    public static var alreadyExistsException: Self { .init(.alreadyExistsException) }
    /// Indicates that the delete operation could not be completed.
    public static var cannotDeleteException: Self { .init(.cannotDeleteException) }
    /// Indicates that the configuration set could not be created because of a naming conflict.
    public static var configurationSetAlreadyExistsException: Self { .init(.configurationSetAlreadyExistsException) }
    /// Indicates that the configuration set does not exist.
    public static var configurationSetDoesNotExistException: Self { .init(.configurationSetDoesNotExistException) }
    /// Indicates that email sending is disabled for the configuration set. You can enable or disable email sending for a configuration set using UpdateConfigurationSetSendingEnabled.
    public static var configurationSetSendingPausedException: Self { .init(.configurationSetSendingPausedException) }
    /// Indicates that custom verification email template provided content is invalid.
    public static var customVerificationEmailInvalidContentException: Self { .init(.customVerificationEmailInvalidContentException) }
    /// Indicates that a custom verification email template with the name you specified already exists.
    public static var customVerificationEmailTemplateAlreadyExistsException: Self { .init(.customVerificationEmailTemplateAlreadyExistsException) }
    /// Indicates that a custom verification email template with the name you specified does not exist.
    public static var customVerificationEmailTemplateDoesNotExistException: Self { .init(.customVerificationEmailTemplateDoesNotExistException) }
    /// Indicates that the event destination could not be created because of a naming conflict.
    public static var eventDestinationAlreadyExistsException: Self { .init(.eventDestinationAlreadyExistsException) }
    /// Indicates that the event destination does not exist.
    public static var eventDestinationDoesNotExistException: Self { .init(.eventDestinationDoesNotExistException) }
    /// Indicates that the sender address specified for a custom verification email is not verified, and is therefore not eligible to send the custom verification email.
    public static var fromEmailAddressNotVerifiedException: Self { .init(.fromEmailAddressNotVerifiedException) }
    /// Indicates that the Amazon CloudWatch destination is invalid. See the error message for details.
    public static var invalidCloudWatchDestinationException: Self { .init(.invalidCloudWatchDestinationException) }
    /// Indicates that the configuration set is invalid. See the error message for details.
    public static var invalidConfigurationSetException: Self { .init(.invalidConfigurationSetException) }
    /// Indicates that provided delivery option is invalid.
    public static var invalidDeliveryOptionsException: Self { .init(.invalidDeliveryOptionsException) }
    /// Indicates that the Amazon Kinesis Firehose destination is invalid. See the error message for details.
    public static var invalidFirehoseDestinationException: Self { .init(.invalidFirehoseDestinationException) }
    /// Indicates that the provided Amazon Web Services Lambda function is invalid, or that Amazon SES could not execute the provided function, possibly due to permissions issues. For information about giving permissions, see the Amazon SES Developer Guide.
    public static var invalidLambdaFunctionException: Self { .init(.invalidLambdaFunctionException) }
    /// Indicates that the provided policy is invalid. Check the error stack for more information about what caused the error.
    public static var invalidPolicyException: Self { .init(.invalidPolicyException) }
    /// Indicates that one or more of the replacement values you provided is invalid. This error may occur when the TemplateData object contains invalid JSON.
    public static var invalidRenderingParameterException: Self { .init(.invalidRenderingParameterException) }
    /// Indicates that the provided Amazon S3 bucket or Amazon Web Services KMS encryption key is invalid, or that Amazon SES could not publish to the bucket, possibly due to permissions issues. For information about giving permissions, see the Amazon SES Developer Guide.
    public static var invalidS3ConfigurationException: Self { .init(.invalidS3ConfigurationException) }
    /// Indicates that the Amazon Simple Notification Service (Amazon SNS) destination is invalid. See the error message for details.
    public static var invalidSNSDestinationException: Self { .init(.invalidSNSDestinationException) }
    /// Indicates that the provided Amazon SNS topic is invalid, or that Amazon SES could not publish to the topic, possibly due to permissions issues. For information about giving permissions, see the Amazon SES Developer Guide.
    public static var invalidSnsTopicException: Self { .init(.invalidSnsTopicException) }
    /// Indicates that the template that you specified could not be rendered. This issue may occur when a template refers to a partial that does not exist.
    public static var invalidTemplateException: Self { .init(.invalidTemplateException) }
    /// Indicates that the custom domain to be used for open and click tracking redirects is invalid. This error appears most often in the following situations:   When the tracking domain you specified is not verified in Amazon SES.   When the tracking domain you specified is not a valid domain or subdomain.
    public static var invalidTrackingOptionsException: Self { .init(.invalidTrackingOptionsException) }
    /// Indicates that a resource could not be created because of service limits. For a list of Amazon SES limits, see the Amazon SES Developer Guide.
    public static var limitExceededException: Self { .init(.limitExceededException) }
    ///  Indicates that the message could not be sent because Amazon SES could not read the MX record required to use the specified MAIL FROM domain. For information about editing the custom MAIL FROM domain settings for an identity, see the Amazon SES Developer Guide.
    public static var mailFromDomainNotVerifiedException: Self { .init(.mailFromDomainNotVerifiedException) }
    /// Indicates that the action failed, and the message could not be sent. Check the error stack for more information about what caused the error.
    public static var messageRejected: Self { .init(.messageRejected) }
    /// Indicates that one or more of the replacement values for the specified template was not specified. Ensure that the TemplateData object contains references to all of the replacement tags in the specified template.
    public static var missingRenderingAttributeException: Self { .init(.missingRenderingAttributeException) }
    /// Indicates that the account has not been granted production access.
    public static var productionAccessNotGrantedException: Self { .init(.productionAccessNotGrantedException) }
    /// Indicates that the provided receipt rule does not exist.
    public static var ruleDoesNotExistException: Self { .init(.ruleDoesNotExistException) }
    /// Indicates that the provided receipt rule set does not exist.
    public static var ruleSetDoesNotExistException: Self { .init(.ruleSetDoesNotExistException) }
    /// Indicates that the Template object you specified does not exist in your Amazon SES account.
    public static var templateDoesNotExistException: Self { .init(.templateDoesNotExistException) }
    /// Indicates that the configuration set you specified already contains a TrackingOptions object.
    public static var trackingOptionsAlreadyExistsException: Self { .init(.trackingOptionsAlreadyExistsException) }
    /// Indicates that the TrackingOptions object you specified does not exist.
    public static var trackingOptionsDoesNotExistException: Self { .init(.trackingOptionsDoesNotExistException) }
}

extension SESErrorType: AWSServiceErrorType {
    public static let errorCodeMap: [String: AWSErrorShape.Type] = [
        "AlreadyExists": SES.AlreadyExistsException.self,
        "CannotDelete": SES.CannotDeleteException.self,
        "ConfigurationSetAlreadyExists": SES.ConfigurationSetAlreadyExistsException.self,
        "ConfigurationSetDoesNotExist": SES.ConfigurationSetDoesNotExistException.self,
        "ConfigurationSetSendingPausedException": SES.ConfigurationSetSendingPausedException.self,
        "CustomVerificationEmailTemplateAlreadyExists": SES.CustomVerificationEmailTemplateAlreadyExistsException.self,
        "CustomVerificationEmailTemplateDoesNotExist": SES.CustomVerificationEmailTemplateDoesNotExistException.self,
        "EventDestinationAlreadyExists": SES.EventDestinationAlreadyExistsException.self,
        "EventDestinationDoesNotExist": SES.EventDestinationDoesNotExistException.self,
        "FromEmailAddressNotVerified": SES.FromEmailAddressNotVerifiedException.self,
        "InvalidCloudWatchDestination": SES.InvalidCloudWatchDestinationException.self,
        "InvalidFirehoseDestination": SES.InvalidFirehoseDestinationException.self,
        "InvalidLambdaFunction": SES.InvalidLambdaFunctionException.self,
        "InvalidRenderingParameter": SES.InvalidRenderingParameterException.self,
        "InvalidS3Configuration": SES.InvalidS3ConfigurationException.self,
        "InvalidSNSDestination": SES.InvalidSNSDestinationException.self,
        "InvalidSnsTopic": SES.InvalidSnsTopicException.self,
        "InvalidTemplate": SES.InvalidTemplateException.self,
        "MissingRenderingAttribute": SES.MissingRenderingAttributeException.self,
        "RuleDoesNotExist": SES.RuleDoesNotExistException.self,
        "RuleSetDoesNotExist": SES.RuleSetDoesNotExistException.self,
        "TemplateDoesNotExist": SES.TemplateDoesNotExistException.self,
        "TrackingOptionsAlreadyExistsException": SES.TrackingOptionsAlreadyExistsException.self,
        "TrackingOptionsDoesNotExistException": SES.TrackingOptionsDoesNotExistException.self
    ]
}

extension SESErrorType: Equatable {
    public static func == (lhs: SESErrorType, rhs: SESErrorType) -> Bool {
        lhs.error == rhs.error
    }
}

extension SESErrorType: CustomStringConvertible {
    public var description: String {
        return "\(self.error.rawValue): \(self.message ?? "")"
    }
}
